Browse Source

SimpePTT: fixed warnings (2)

chirpmodem-v8.0.0
f4exb 4 years ago
parent
commit
11ba9bd725
  1. 2
      plugins/feature/simpleptt/simplepttworker.cpp

2
plugins/feature/simpleptt/simplepttworker.cpp

@ -297,7 +297,7 @@ void SimplePTTWorker::preSwitch(bool tx) @@ -297,7 +297,7 @@ void SimplePTTWorker::preSwitch(bool tx)
return;
}
gpioPins != (gpioMask & (tx ? m_settings.m_rx2txGPIOValues : m_settings.m_tx2rxGPIOValues));
gpioPins |= (gpioMask & (tx ? m_settings.m_rx2txGPIOValues : m_settings.m_tx2rxGPIOValues));
gpioPins &= (~gpioMask | (tx ? m_settings.m_rx2txGPIOValues : m_settings.m_tx2rxGPIOValues));
if (!ChannelWebAPIUtils::patchDeviceSetting(deviceSetIndex, "gpioPins", gpioPins)) {

Loading…
Cancel
Save