minor: Improve efergy e2 classic (#2760)
This commit is contained in:
parent
57c22d7c73
commit
f9dc6b882e
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ static int efergy_e2_classic_callback(r_device *decoder, bitbuffer_t *bitbuffer)
|
|||
uint8_t interval = (((bytes[3] & 0x30) >> 4) + 1) * 6;
|
||||
uint8_t battery = (bytes[3] & 0x40) >> 6;
|
||||
uint8_t fact = -(int8_t)bytes[6] + 15;
|
||||
if (fact < 7 || fact > 20) // full range unknown so far
|
||||
if (fact < 7 || fact > 23) // full range unknown so far
|
||||
return DECODE_FAIL_SANITY; // invalid exponent
|
||||
float current_adc = (float)(bytes[4] << 8 | bytes[5]) / (1 << fact);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue