From 8e5a9c11b7cd3b88e1ea109d2c06ccaa0dd0f7a0 Mon Sep 17 00:00:00 2001 From: gemu2015 Date: Tue, 9 Mar 2021 12:10:37 +0100 Subject: [PATCH] fix sml 24 bit signed --- tasmota/xsns_53_sml.ino | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasmota/xsns_53_sml.ino b/tasmota/xsns_53_sml.ino index a84ad58de..4b9ccc1e8 100755 --- a/tasmota/xsns_53_sml.ino +++ b/tasmota/xsns_53_sml.ino @@ -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;