fix lint warnings

This commit is contained in:
Proddy
2021-07-03 20:32:46 +02:00
parent 3eb2202117
commit 8429f650aa
2 changed files with 7 additions and 4 deletions

View File

@@ -315,9 +315,12 @@ void Solar::process_SM100SolarCircuitConfig(std::shared_ptr<const Telegram> tele
* e.g. B0 0B F9 00 00 02 5A 00 00 6E * e.g. B0 0B F9 00 00 02 5A 00 00 6E
*/ */
void Solar::process_SM100ParamCfg(std::shared_ptr<const Telegram> telegram) { void Solar::process_SM100ParamCfg(std::shared_ptr<const Telegram> telegram) {
uint16_t t_id; uint16_t t_id = EMS_VALUE_USHORT_NOTSET;
uint8_t of; uint8_t of = EMS_VALUE_UINT_NOTSET;
int32_t min, def, max, cur; int32_t min = EMS_VALUE_USHORT_NOTSET;
int32_t def = EMS_VALUE_USHORT_NOTSET;
int32_t max = EMS_VALUE_USHORT_NOTSET;
int32_t cur = EMS_VALUE_USHORT_NOTSET;
has_update(telegram->read_value(t_id, 1)); has_update(telegram->read_value(t_id, 1));
has_update(telegram->read_value(of, 3)); has_update(telegram->read_value(of, 3));
has_update(telegram->read_value(min, 5)); has_update(telegram->read_value(min, 5));

View File

@@ -1096,7 +1096,7 @@ void Thermostat::process_RCErrorMessage(std::shared_ptr<const Telegram> telegram
// data: displaycode(2), errornumber(2), year, month, hour, day, minute, duration(2), src-addr // data: displaycode(2), errornumber(2), year, month, hour, day, minute, duration(2), src-addr
if (telegram->message_data[4] & 0x80) { // valid date if (telegram->message_data[4] & 0x80) { // valid date
char code[3]; char code[3];
uint16_t codeNo; uint16_t codeNo = EMS_VALUE_USHORT_NOTSET;
code[0] = telegram->message_data[0]; code[0] = telegram->message_data[0];
code[1] = telegram->message_data[1]; code[1] = telegram->message_data[1];
code[2] = 0; code[2] = 0;