currently, the decoders for air_status and fuel_status use math.log(v,2) to determine which bit is set. This explodes when 'v' is zero, and will give false positive decodings when more than one bit is set. This should be more robust, and return failure upon receiving bad data.
currently, the decoders for air_status and fuel_status use math.log(v,2) to determine which bit is set. This explodes when 'v' is zero, and will give false positive decodings when more than one bit is set. This should be more robust, and return failure upon receiving bad data.