From 3e93f9bebbc00e6a83bfd62f17282ceac8762688 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Thu, 3 Sep 2020 10:14:17 -0400 Subject: [PATCH] If receive a R, reset payload --- arduino/Payload_BME280_MPU6050_Pro_Micro.ino | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arduino/Payload_BME280_MPU6050_Pro_Micro.ino b/arduino/Payload_BME280_MPU6050_Pro_Micro.ino index 0c9054e1..0847a2a6 100644 --- a/arduino/Payload_BME280_MPU6050_Pro_Micro.ino +++ b/arduino/Payload_BME280_MPU6050_Pro_Micro.ino @@ -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());