OpenZWave / open-zwave

a C++ library to control Z-Wave Networks via a USB Z-Wave Controller.
http://www.openzwave.net/
GNU Lesser General Public License v3.0
1.05k stars 918 forks source link

fix: Correct SetValue exception message on Schedule and Button #2524

Closed 13rac1 closed 3 years ago

13rac1 commented 3 years ago

Change the exception to a unique message indicating an error in the SetValue() function, rather than GetValueFloatPrecision().

My logs contain many instances of the previous message from a Button:

Warning, Exception: Manager.cpp:2499 - 102 - ValueID passed to GetValueFloatPrecision is not a Decimal Value

I'm not sure if the error is occurring in GetValueFloatPrecision() or SetValue(), either way this line needs to be corrected.

nechry commented 3 years ago

thank @13rac1