commented out first_time so always prints payload string

pico-payload-gps-mq
alanbjohnston 3 years ago committed by GitHub
parent d88c3b4666
commit c360874967
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3006,7 +3006,7 @@ void payload_OK_only()
if (result == 'R') {
Serial.println("OK");
delay(100);
first_time = true;
// first_time = true;
start_payload();
// setup();
}
@ -3016,16 +3016,15 @@ void payload_OK_only()
else if (result == 'C') {
Serial.println("Clearing stored gyro offsets in EEPROM\n");
EEPROM.put(0, (float)0.0);
first_time = true;
// first_time = true;
start_payload();
// setup();
}
// if ((result == '?') || first_time == true) // commented back in
if (true)
if ((result == '?') || first_time == true) // commented back in
if (true)
{
first_time = false;
// first_time = false;
if (bmePresent) {
Serial.print("OK BME280 ");
Serial.print(bme.readTemperature());

Loading…
Cancel
Save

Powered by TurnKey Linux.