I have a Simpl+ module that has an analog_input value representing volume level (0-65534) and storing that value and recalling that value on a reboot. This seems to work unless analog_input value is < 0 or > 65534. I've tried incorporating Signed_Integer for comparison but still never get an error but rather a conversion to my analog_input value. For example, if the Analog_Value is 70000 then a conversion is happening and causing the value of 4464 to be saved.
if((AudioLevel[x] < AudioLevelMin) || (AudioLevel[x] > AudioLevelMax))
{
? ? ? ? ? ?makestring(Error$, "Audio Levels are from 1 to %u", maxLevels);
}?