@@ -1424,33 +1424,33 @@ void MspProcessor::processCommand(MspMessage& m, MspResponse& r, Device::SerialD
1424
1424
{
1425
1425
uint16_t freq = m.readU16 ();
1426
1426
if (freq <= VTXCOMMON_MSP_BANDCHAN_CHKVAL) { // Value is band and channel
1427
- const uint8_t newBand = (freq / 8 ) + 1 ;
1428
- const uint8_t newChannel = (freq % 8 ) + 1 ;
1427
+ // const uint8_t newBand = (freq / 8) + 1;
1428
+ // const uint8_t newChannel = (freq % 8) + 1;
1429
1429
}
1430
1430
1431
1431
if (m.remain () >= 2 ) {
1432
1432
_model.config .vtx .power = m.readU8 ();
1433
- const uint8_t newPitmode = m.readU8 ();
1433
+ /* const uint8_t newPitmode = */ m.readU8 ();
1434
1434
}
1435
1435
1436
1436
if (m.remain ()) {
1437
1437
_model.config .vtx .lowPowerDisarm = m.readU8 ();
1438
1438
}
1439
1439
1440
- // API version 1.42 - this parameter kept separate since clients may already be supplying
1441
- if (m.remain () >= 2 ) {
1442
- const uint16_t pitModeFreq = m.readU16 ();
1443
- }
1440
+ // API version 1.42 - this parameter kept separate since clients may already be supplying
1441
+ if (m.remain () >= 2 ) {
1442
+ /* const uint16_t pitModeFreq = */ m.readU16 ();
1443
+ }
1444
1444
1445
- // API version 1.42 - extensions for non-encoded versions of the band, channel or frequency
1446
- if (m.remain () >= 4 ) {
1445
+ // API version 1.42 - extensions for non-encoded versions of the band, channel or frequency
1446
+ if (m.remain () >= 4 ) {
1447
1447
// Added standalone values for band, channel and frequency to move
1448
1448
// away from the flawed encoded combined method originally implemented.
1449
1449
_model.config .vtx .band = m.readU8 ();
1450
1450
_model.config .vtx .channel = m.readU8 ();
1451
- uint16_t newFreq = m.readU16 ();
1451
+ /* uint16_t newFreq = */ m.readU16 ();
1452
+ }
1452
1453
}
1453
- }
1454
1454
break ;
1455
1455
1456
1456
0 commit comments