fix float & long

This commit is contained in:
Mit4el
2025-02-05 21:40:03 +03:00
parent 10b1adb5a5
commit 229dc89a7c

View File

@@ -152,7 +152,8 @@ public:
{
uint16_t val1, val2;
response.get(3, val1);
response.get(4, val2);
response.get(5, val2);
Serial.printf("COUNT 2: %02X - %02X\n", (int)val1, (int)val2);
long val = val1 | val2 << 16;
regEvent((float)val, "ModbusNode");
}