mirror of
https://github.com/arendst/Tasmota.git
synced 2026-07-27 20:05:46 +00:00
[Zigbee] Fix negative tuya values (#24297)
* [Zigbee] Fix negative tuya values * Update xdrv_23_zigbee_A_impl.ino - Added SPACE between light color and value regarding to other value presentations - Removed the 'json' parameter from ZigbeeShow, as it is not used * Revert code optimizations * get32IBigEndian
This commit is contained in:
@@ -548,8 +548,8 @@ void parseSingleTuyaAttribute(Z_attribute & attr, const SBuffer &buf,
|
||||
case 0x04: // enum 8 bits
|
||||
attr.setUInt(buf.get8(i));
|
||||
break;
|
||||
case 0x02: // 4 bytes value (signed?)
|
||||
attr.setUInt(buf.get32BigEndian(i));
|
||||
case 0x02: // 4 bytes value (signed? Yes, signed!)
|
||||
attr.setInt(buf.get32IBigEndian(i));
|
||||
break;
|
||||
case 0x03: // String (we expect it is not ended with \00)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user