If receive a R, reset payload

pull/58/head
alanbjohnston 5 years ago committed by GitHub
parent 3e79881444
commit 3e93f9bebb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -50,6 +50,8 @@ void loop() {
TXLED0; //TX LED is not tied to a normally controlled pin so a macro is needed, turn LED OFF
char result = Serial.read();
// Serial1.println(result);
if (result == 'R')
setup();
if (bmePresent) {
Serial.print("OK BME280 ");
Serial.print(bme.readTemperature());
@ -83,7 +85,8 @@ void loop() {
TXLED0; //TX LED is not tied to a normally controlled pin so a macro is needed, turn LED OFF
char result = Serial1.read();
// Serial1.println(result);
// Serial1.println("OK ");
if (result == 'R')
setup();
if (bmePresent) {
Serial1.print("OK BME280 ");
Serial1.print(bme.readTemperature());

Loading…
Cancel
Save

Powered by TurnKey Linux.