File tree Expand file tree Collapse file tree 4 files changed +7
-12
lines changed
Firmware/LoRaSerial_Firmware Expand file tree Collapse file tree 4 files changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ void checkCommand()
3434 case (' I' ):
3535 // Shows the radio version
3636 reportOK ();
37- systemPrint (" SparkFun STR " );
37+ systemPrint (" SparkFun LoRaSerial " );
3838 systemPrint (platformPrefix);
3939 systemPrint (" v" );
4040 systemPrint (FIRMWARE_VERSION_MAJOR);
@@ -93,7 +93,7 @@ void checkCommand()
9393 displayParameters ();
9494 break ;
9595 case (' 1' ): // ATI1 - Show board variant
96- systemPrint (" SparkFun STR " );
96+ systemPrint (" SparkFun LoRaSerial " );
9797 systemPrint (platformPrefix);
9898 systemPrint (" \r\n " );
9999 break ;
Original file line number Diff line number Diff line change @@ -218,9 +218,6 @@ void setup()
218218
219219 beginBoard (); // Determine what hardware platform we are running on
220220
221- // settings.airSpeed = 19200;
222- // settings.debug = true; //Enable trigger pin events
223-
224221 beginLoRa (); // Start radio
225222
226223 beginButton (); // Start watching the train button
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ void loadSettings()
1414
1515 // Check that the current settings struct size matches what is stored in EEPROM
1616 // Misalignment happens when we add a new feature or setting
17- int tempSize = 0 ;
17+ uint16_t tempSize = 0 ;
1818 EEPROM.get (0 , tempSize); // Load the sizeOfSettings
1919 if (tempSize != sizeof (settings))
2020 {
@@ -23,13 +23,11 @@ void loadSettings()
2323 }
2424
2525 // Check that the strIdentifier is correct
26- int tempIdentifier = 0 ;
27- EEPROM.get (sizeof (int ), tempIdentifier); // Load the identifier from the EEPROM location after sizeOfSettings (int)
26+ uint16_t tempIdentifier = 0 ;
27+ EEPROM.get (sizeof (tempSize ), tempIdentifier); // Load the identifier from the EEPROM location after sizeOfSettings (int)
2828 if (tempIdentifier != LRS_IDENTIFIER)
2929 {
30- // systemPrint("Settings are not valid for this variant of STR ");
31- // systemPrint((String)platformPrefix);
32- // systemPrintln(". Default settings applied.");
30+ // systemPrint("Settings are not valid for this variant of LoRaSerial. Default settings applied.");
3331 recordSystemSettings (); // Record default settings to EEPROM. At power on, settings are in default state
3432 }
3533
Original file line number Diff line number Diff line change @@ -318,7 +318,7 @@ void configureRadio()
318318 systemPrintln (" Radio init failed. Check settings." );
319319 }
320320 }
321- LRS_DEBUG_PRINTLN (" Radio online " );
321+ LRS_DEBUG_PRINTLN (" Radio configured " );
322322}
323323
324324void returnToReceiving ()
You can’t perform that action at this time.
0 commit comments