|
|
|
@ -3128,17 +3128,17 @@ void payload_OK_only()
|
|
|
|
char result = Serial1.read();
|
|
|
|
char result = Serial1.read();
|
|
|
|
// Serial1.println(result);
|
|
|
|
// Serial1.println(result);
|
|
|
|
Serial.println(result);
|
|
|
|
Serial.println(result);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (result == 'R') {
|
|
|
|
if (result == 'R') {
|
|
|
|
Serial1.println("OK");
|
|
|
|
Serial1.println("OK");
|
|
|
|
delay(100);
|
|
|
|
delay(100);
|
|
|
|
first_read = true;
|
|
|
|
first_read = true;
|
|
|
|
start_payload();
|
|
|
|
start_payload();
|
|
|
|
// setup();
|
|
|
|
// setup();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
// if (result == '?')
|
|
|
|
// if (result == '?')
|
|
|
|
if (true)
|
|
|
|
if (true) // always send payload data over serial
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (bmePresent) {
|
|
|
|
if (bmePresent) {
|
|
|
|
Serial1.print("OK BME280 ");
|
|
|
|
Serial1.print("OK BME280 ");
|
|
|
|
|