Skip to content

Commit

Permalink
Missing default case.
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Dec 20, 2023
1 parent e79e571 commit 2899095
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/victron_ble/victron_ble.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,11 @@ bool VictronBle::is_record_type_supported_(const VICTRON_BLE_RECORD_TYPE record_
case VICTRON_BLE_RECORD_TYPE::DC_ENERGY_METER:
expected_len = sizeof(VICTRON_BLE_RECORD_DC_ENERGY_METER);
break;
default:
break;
}
ESP_LOGW(TAG, "[%s] Record type %02X message is too short %u, expected %u bytes.", this->address_str().c_str(), (u_int8_t) record_type,
crypted_len, expected_len);
ESP_LOGW(TAG, "[%s] Record type %02X message is too short %u, expected %u bytes.", this->address_str().c_str(),
(u_int8_t) record_type, crypted_len, expected_len);
return false;
}

Expand Down

0 comments on commit 2899095

Please sign in to comment.