From dd6c691e388d90e5cc4a059abbcb8a4e460c8258 Mon Sep 17 00:00:00 2001 From: peff74 <91614910+peff74@users.noreply.github.com> Date: Mon, 21 Nov 2022 14:42:01 +0100 Subject: [PATCH] Update Sonoff_BL0939.ino --- Sonoff_BL0939/Sonoff_BL0939.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sonoff_BL0939/Sonoff_BL0939.ino b/Sonoff_BL0939/Sonoff_BL0939.ino index 13eca0f..d1a0869 100644 --- a/Sonoff_BL0939/Sonoff_BL0939.ino +++ b/Sonoff_BL0939/Sonoff_BL0939.ino @@ -160,7 +160,7 @@ void Read_Data() { serial_in_byte = Serial2.read(); // TelnetPrint.print("Serial Byte: " + String(serial_in_byte, HEX)); - if (serial_in_byte == PACKET_HEADER) { + if (serial_in_byte == PACKET_HEADER && !found_header) { byte_counter = 0; found_header = true; TelnetPrint.println("Paket Header found");