Skip to content

Commit

Permalink
Update Sonoff_BL0939.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
peff74 authored Nov 21, 2022
1 parent c47f8a9 commit dd6c691
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sonoff_BL0939/Sonoff_BL0939.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit dd6c691

Please sign in to comment.