Updated to be compatible with some iopcomm changes.

This commit is contained in:
Rob French 2020-06-14 22:54:40 -05:00
parent 5e675107c1
commit cdf3871385
1 changed files with 6 additions and 5 deletions

View File

@ -58,17 +58,18 @@
*/
void iopSendMode(char cw_mode, char is_usb, char digi_mode)
{
byte mode;
rig_mode mode;
// NOTE: eventually, add sideband (is_usb) to all of these.
if (cw_mode > 0) {
mode = (cw_mode == 1 ? cwr : cw);
mode = rig_mode::cw;
} else if (digi_mode > 0) {
//mode = (is_usb ? RIG_MODE_DGU : RIG_MODE_DGL);
mode = dig;
mode = rig_mode::digi;
// } else if (is_test) {
// mode = (is_usb ? RIG_MODE_TTU : RIG_MODE_TTL);
} else {
mode = (is_usb ? usb : lsb);
mode = rig_mode::ssb; //(is_usb ? usb : lsb);
}
sendIOPModeCommand(mode);
}