Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
fredlcore committed May 13, 2024
1 parent 70e7cc4 commit fa89e06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BSB_LAN/include/pps_handling.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ uint16_t pps_bus_handling(byte *msg) {
byte tx_msg[] = {0xFD, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF};
byte rx_msg[10] = { 0 };

if (msg[1] | msg[2] | msg[3] | msg[4] | msg[5] > 0) {
if ((msg[1] | msg[2] | msg[3] | msg[4] | msg[5]) > 0) {
return 0; // RTS telegram needs to consist of one byte only. If there is more, then we were too slow to act and the heater has already sent the next telegram, so we have to discard this one.
}

Expand Down

0 comments on commit fa89e06

Please sign in to comment.