formatting

This commit is contained in:
proddy
2021-11-25 09:13:22 +01:00
parent b2a0519f83
commit 1b86314a14

View File

@@ -815,9 +815,10 @@ void Boiler::process_UBAErrorMessage(std::shared_ptr<const Telegram> telegram) {
// 0xC2
void Boiler::process_UBAErrorMessage2(std::shared_ptr<const Telegram> telegram) {
if (telegram->offset > 0 || telegram->message_length < 14) {
return;
}
// not sure why this test is in , so removing
// if (telegram->offset > 0 || telegram->message_length < 14) {
// return;
// }
char code[4];
uint16_t codeNo;
char start_time[17];
@@ -848,8 +849,7 @@ void Boiler::process_UBAErrorMessage2(std::shared_ptr<const Telegram> telegram)
if (telegram->message_data[15] & 0x80) { // valid end date
snprintf(end_time, sizeof(end_time), "%d.%02d.%02d %02d:%02d", end_year, end_month, end_day, end_hour, end_min);
}
else { // no valid end date means error still persists
} else { // no valid end date means error still persists
snprintf(end_time, sizeof(end_time), "%s", "none");
}