Closed TDA-2030 closed 1 month ago
Thank you for finding this. As the limit should be 65v it should usually not affect anything at the moment but it seems reasonable to change the type to 32b in case higher voltages are measured at some point.
Have to check if there is anything else that might be affected so i am going to merge into the dev branch first for the next release as it didn't seem to have caused issues yet.
As shown in the following code, since the range of the data type
uint16_t
cannot express numbers greater than78000
, there is a comparison that is always true.Therefore, the return type of getExtV() and getIntV() has been changed to int32_t