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");