diff --git a/cpp/src/command_classes/ThermostatSetpoint.cpp b/cpp/src/command_classes/ThermostatSetpoint.cpp index 0fc1d55e..22e51f87 100644 --- a/cpp/src/command_classes/ThermostatSetpoint.cpp +++ b/cpp/src/command_classes/ThermostatSetpoint.cpp @@ -257,13 +257,12 @@ bool ThermostatSetpoint::HandleMsg // Parse the data for the supported setpoints for( uint32 i=1; i<_length-1; ++i ) { - int32 bit = m_setPointBase; - for( ; bit<8; ++bit ) + for( int32 bit=0; bit<8; ++bit ) { if( ( _data[i] & (1<CreateValueDecimal( ValueID::ValueGenre_User, GetCommandClassId(), _instance, index, c_setpointName[index], "C", false, false, "0.0" );