@@ -220,12 +220,12 @@ bool configureUbloxModule()
220220
221221 if (getSerialRate (COM_PORT_UART1) != settings.dataPortBaud )
222222 {
223- Serial.println (" Updating UART1 rate" );
223+ Serial.println (F ( " Updating UART1 rate" ) );
224224 myGPS.setSerialRate (settings.dataPortBaud , COM_PORT_UART1); // Set UART1 to 115200
225225 }
226226 if (getSerialRate (COM_PORT_UART2) != settings.radioPortBaud )
227227 {
228- Serial.println (" Updating UART2 rate" );
228+ Serial.println (F ( " Updating UART2 rate" ) );
229229 myGPS.setSerialRate (settings.radioPortBaud , COM_PORT_UART2); // Set UART2 to 57600 to match SiK telemetry radio firmware default
230230 }
231231
@@ -242,7 +242,7 @@ bool configureUbloxModule()
242242 // Configure for rover mode
243243 if (configureUbloxModuleRover () == false )
244244 {
245- Serial.println (" Rover config failed!" );
245+ Serial.println (F ( " Rover config failed!" ) );
246246 return (false );
247247 }
248248 }
@@ -251,7 +251,7 @@ bool configureUbloxModule()
251251 // Configure for base mode
252252 if (configureUbloxModuleBase () == false )
253253 {
254- Serial.println (" Base config failed!" );
254+ Serial.println (F ( " Base config failed!" ) );
255255 return (false );
256256 }
257257 }
@@ -606,17 +606,17 @@ boolean SFE_UBLOX_GPS_ADD::getModuleInfo(uint16_t maxWait)
606606}
607607
608608// Call back for when BT connection event happens (connected/disconnect)
609- // Used for updating the bluetoothState state machine
609+ // Used for updating the radioState state machine
610610void btCallback (esp_spp_cb_event_t event, esp_spp_cb_param_t *param) {
611611 if (event == ESP_SPP_SRV_OPEN_EVT) {
612- Serial.println (" Client Connected" );
613- bluetoothState = BT_CONNECTED;
612+ Serial.println (F ( " Client Connected" ) );
613+ radioState = BT_CONNECTED;
614614 digitalWrite (bluetoothStatusLED, HIGH);
615615 }
616616
617617 if (event == ESP_SPP_CLOSE_EVT ) {
618- Serial.println (" Client disconnected" );
619- bluetoothState = BT_ON_NOCONNECTION;
618+ Serial.println (F ( " Client disconnected" ) );
619+ radioState = BT_ON_NOCONNECTION;
620620 digitalWrite (bluetoothStatusLED, LOW);
621621 lastBluetoothLEDBlink = millis ();
622622 }
0 commit comments