mirror of https://github.com/arendst/Tasmota.git
Merge pull request #11271 from gemu2015/sml
fix binary sml 24 bit signed
This commit is contained in:
commit
dafffbb104
|
@ -1077,6 +1077,11 @@ double dval;
|
|||
#endif
|
||||
break;
|
||||
case 3:
|
||||
// signed 24 bit
|
||||
value=(int32_t)(uvalue<<8);
|
||||
value/=256;
|
||||
break;
|
||||
|
||||
case 4:
|
||||
// signed 32 bit
|
||||
value=(int32_t)uvalue;
|
||||
|
|
Loading…
Reference in New Issue