Skip to content

Commit 1ece60b

Browse files
committed
Display airspeed during command mode
1 parent 770e3ce commit 1ece60b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Firmware/LoRaSerial/Commands.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,7 @@ bool valSpeedAir (void * value, uint32_t valMin, uint32_t valMax)
11841184
{
11851185
//Adjust the settings to match the requested airSpeed
11861186
convertAirSpeedToSettings(&tempSettings, settingValue);
1187-
airSpeed = 0;
1187+
airSpeed = settingValue;
11881188
systemPrintln("Warning: AirSpeed overrides bandwidth, coding rate, spread factor,");
11891189
systemPrintln("heartbeatTimeout, and txToRxUsec");
11901190
}

Firmware/LoRaSerial/Radio.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ bool configureRadio()
5656
}
5757
else
5858
{
59-
if (radio.autoLDRO(true) != RADIOLIB_ERR_NONE)
59+
if (radio.autoLDRO() != RADIOLIB_ERR_NONE)
6060
success = false;
6161
}
6262

Firmware/LoRaSerial/Serial.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,7 @@ void processSerialInput()
497497
inCommandMode = true; //Allow AT parsing. Prevent received RF data from being printed.
498498
forceRadioReset = false; //Don't reset the radio link unless a setting requires it
499499
writeOnCommandExit = false; //Don't record settings changes unless user commands it
500+
airSpeed = convertSettingsToAirSpeed(&settings); //Find current airSpeed
500501

501502
tempSettings = settings;
502503

0 commit comments

Comments
 (0)