Fix compile if controller disabled

smart-pointers
Phil Taylor 2023-02-07 23:29:50 +00:00
rodzic f4a86ac02e
commit cb339edc1f
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -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) {