Bugfix/using-uint16-for-units-property-storage (#1107)

* Fixed units property declaration in basic Analog Input header file to be uint16_t instead of uint8_t.

* Added range checking of units property in example objects WriteProperty handler.
This commit is contained in:
Steve Karg
2025-09-24 09:35:10 -05:00
committed by GitHub
parent b357bca5dd
commit 7dfc840dfc
8 changed files with 91 additions and 23 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ typedef struct analog_input_descr {
float Present_Value;
BACNET_RELIABILITY Reliability;
bool Out_Of_Service;
uint8_t Units;
uint16_t Units;
float Prior_Value;
float COV_Increment;
bool Changed;