@@ -334,6 +334,9 @@ void menuMain()
334
334
335
335
// Change the USB serial output behavior if necessary
336
336
forwardGnssDataToUsbSerial = settings.enableGnssToUsbSerial ;
337
+
338
+ // While in LoRa mode, we need to know when the last serial interaction was
339
+ loraLastIncomingSerial = millis ();
337
340
}
338
341
339
342
// Change system wide settings based on current user profile
@@ -556,7 +559,7 @@ void menuRadio()
556
559
systemPrint (" 1) ESP-NOW Radio: " );
557
560
systemPrintf (" %s\r\n " , settings.enableEspNow ? " Enabled" : " Disabled" );
558
561
#else // COMPILE_ESPNOW
559
- systemPrintln (" 1) **ESP-Now Not Compiled**" );
562
+ systemPrintln (" 1) **ESP-Now Not Compiled**" );
560
563
#endif // COMPILE_ESPNOW
561
564
562
565
if (settings.enableEspNow == true )
@@ -596,12 +599,18 @@ void menuRadio()
596
599
597
600
if (present.radio_lora == true )
598
601
{
599
- systemPrint (" 10) LoRa Radio: " );
600
- systemPrintf (" %s\r\n " , settings.enableLora ? " Enabled" : " Disabled" );
601
-
602
- if (settings.enableLora == true )
602
+ if (settings.enableLora == false )
603
+ {
604
+ systemPrintln (" 10) LoRa Radio: Disabled" );
605
+ }
606
+ else
603
607
{
608
+ loraGetVersion ();
609
+ systemPrintf (" 10) LoRa Radio: Enabled - Firmware v%s\r\n " , loraFirmwareVersion);
604
610
systemPrintf (" 11) LoRa Coordination Frequency: %0.3f\r\n " , settings.loraCoordinationFrequency );
611
+ systemPrintf (" 12) Seconds without user serial that must elapse before LoRa radio goes into dedicated "
612
+ " listening mode: %d\r\n " ,
613
+ settings.loraSerialInteractionTimeout_s );
605
614
}
606
615
}
607
616
@@ -712,6 +721,12 @@ void menuRadio()
712
721
getNewSetting (" Enter the frequency used to coordinate radios in MHz" , 903.0 , 927.0 ,
713
722
&settings.loraCoordinationFrequency );
714
723
}
724
+ else if (present.radio_lora == true && settings.enableLora == true && incoming == 12 )
725
+ {
726
+ getNewSetting (" Enter the number of seconds without user serial that must elapse before LoRa radio goes "
727
+ " into dedicated listening mode" ,
728
+ 10 , 600 , &settings.loraSerialInteractionTimeout_s );
729
+ }
715
730
716
731
else if (incoming == INPUT_RESPONSE_GETNUMBER_EXIT)
717
732
break ;
0 commit comments