[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:
parent
b4fcafd353
commit
a9e75e7840
@ -548,8 +548,8 @@ void parseSingleTuyaAttribute(Z_attribute & attr, const SBuffer &buf,
|
|||||||
case 0x04: // enum 8 bits
|
case 0x04: // enum 8 bits
|
||||||
attr.setUInt(buf.get8(i));
|
attr.setUInt(buf.get8(i));
|
||||||
break;
|
break;
|
||||||
case 0x02: // 4 bytes value (signed?)
|
case 0x02: // 4 bytes value (signed? Yes, signed!)
|
||||||
attr.setUInt(buf.get32BigEndian(i));
|
attr.setInt(buf.get32IBigEndian(i));
|
||||||
break;
|
break;
|
||||||
case 0x03: // String (we expect it is not ended with \00)
|
case 0x03: // String (we expect it is not ended with \00)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user