kopia lustrzana https://github.com/OpenRTX/OpenRTX
Implemented transmission of user-configured M17 channel access number
rodzic
fb8e3412c5
commit
f42b9d2cda
|
@ -97,7 +97,8 @@ void *ui_threadFunc(void *arg)
|
||||||
rtx_cfg.txToneEn = state.channel.fm.txToneEn;
|
rtx_cfg.txToneEn = state.channel.fm.txToneEn;
|
||||||
rtx_cfg.txTone = ctcss_tone[state.channel.fm.txTone];
|
rtx_cfg.txTone = ctcss_tone[state.channel.fm.txTone];
|
||||||
|
|
||||||
// Copy new M17 source and destination addresses
|
// Copy new M17 CAN, source and destination addresses
|
||||||
|
rtx_cfg.can = state.m17_data.can;
|
||||||
strncpy(rtx_cfg.source_address, state.settings.callsign, 10);
|
strncpy(rtx_cfg.source_address, state.settings.callsign, 10);
|
||||||
strncpy(rtx_cfg.destination_address, state.m17_data.dst_addr, 10);
|
strncpy(rtx_cfg.destination_address, state.m17_data.dst_addr, 10);
|
||||||
|
|
||||||
|
|
|
@ -225,7 +225,7 @@ void OpMode_M17::txState(rtxStatus_t *const status)
|
||||||
streamType_t type;
|
streamType_t type;
|
||||||
type.fields.stream = 1; // Stream
|
type.fields.stream = 1; // Stream
|
||||||
type.fields.dataType = 2; // Voice data
|
type.fields.dataType = 2; // Voice data
|
||||||
type.fields.CAN = 0; // Channel access number
|
type.fields.CAN = status->can; // Channel access number
|
||||||
|
|
||||||
lsf.setType(type);
|
lsf.setType(type);
|
||||||
lsf.updateCrc();
|
lsf.updateCrc();
|
||||||
|
|
Ładowanie…
Reference in New Issue