remove '?' query on serial

pull/294/head
Alan Johnston 2 years ago committed by GitHub
parent 103aac7277
commit edfdb175e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -254,7 +254,7 @@ void loop() {
// Serial.println(result); // Serial.println(result);
// Serial.println("OK"); // Serial.println("OK");
// Serial.println(counter++); // Serial.println(counter++);
#ifndef ARDUINO_ARCH_RP2040
if (result == 'R') { if (result == 'R') {
Serial1.println("OK"); Serial1.println("OK");
delay(100); delay(100);
@ -262,14 +262,14 @@ void loop() {
setup(); setup();
} }
else if (result == 'C') { else if (result == 'C') {
#ifndef ARDUINO_ARCH_RP2040
Serial.println("Clearing stored gyro offsets in EEPROM\n"); Serial.println("Clearing stored gyro offsets in EEPROM\n");
eeprom_word_write(0, 0x00); eeprom_word_write(0, 0x00);
first_time = true; first_time = true;
setup(); setup();
#endif
} }
#endif
/*
if ((result == '?') || first_time == true) if ((result == '?') || first_time == true)
{ {
first_time = false; first_time = false;
@ -336,6 +336,8 @@ void loop() {
led_set(blueLED, LOW); led_set(blueLED, LOW);
} }
} }
*/
delay(1000); delay(1000);
} }

Loading…
Cancel
Save

Powered by TurnKey Linux.