Skip to content

Commit

Permalink
Update boiler.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
pswid committed Dec 3, 2021
1 parent b0a0974 commit 3c6fd0c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/devices/boiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -815,10 +815,11 @@ void Boiler::process_UBAErrorMessage(std::shared_ptr<const Telegram> telegram) {

// 0xC2
void Boiler::process_UBAErrorMessage2(std::shared_ptr<const Telegram> telegram) {
// not sure why this test is in , so removing
// if (telegram->offset > 0 || telegram->message_length < 14) {
// return;
// }
// for decoding "last error code" we need telegram starting with offset 0
if (telegram->offset != 0 || telegram->message_length < 14) {
return;
}

char code[4];
uint16_t codeNo;
char start_time[17];
Expand Down

0 comments on commit 3c6fd0c

Please sign in to comment.