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

Loading…
Cancel
Save

Powered by TurnKey Linux.