kopia lustrzana https://gitlab.com/eliggett/wfview
Fix compile if controller disabled
rodzic
f4a86ac02e
commit
cb339edc1f
|
@ -9192,6 +9192,7 @@ void wfmain::on_cwButton_clicked()
|
|||
|
||||
void wfmain::resetUsbButtons()
|
||||
{
|
||||
#ifdef USB_CONTROLLER
|
||||
usbButtons.clear();
|
||||
|
||||
// ShuttleXpress
|
||||
|
@ -9265,11 +9266,12 @@ void wfmain::resetUsbButtons()
|
|||
|
||||
emit sendUsbControllerButtons(&usbButtons);
|
||||
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
void wfmain::resetUsbCommands()
|
||||
{
|
||||
#ifdef USB_CONTROLLER
|
||||
usbCommands.clear();
|
||||
int num = 0;
|
||||
usbCommands.append(COMMAND(num++, "None", cmdNone, 0x0));
|
||||
|
@ -9327,6 +9329,7 @@ void wfmain::resetUsbCommands()
|
|||
usbCommands.append(COMMAND(num++, "Split Off", cmdNone, 0x0));
|
||||
usbCommands.append(COMMAND(num++, "Swap VFOs", cmdVFOSwap, 0x0));
|
||||
emit sendUsbControllerCommands(&usbCommands);
|
||||
#endif
|
||||
}
|
||||
|
||||
void wfmain::receiveUsbSensitivity(int val) {
|
||||
|
|
Ładowanie…
Reference in New Issue