Fix DDS238-2 wrong reactive power value (#12283)

This commit is contained in:
Theo Arends 2021-06-20 11:36:34 +02:00
parent 4c97948428
commit 0d18174bd9
3 changed files with 3 additions and 1 deletions

View File

@ -11,6 +11,7 @@ All notable changes to this project will be documented in this file.
### Fixed
- ESP32 Webcam add boundary marker before sending mjpeg image (#12376)
- DDS238-2 wrong reactive power value (#12283)
## [Released]

View File

@ -104,6 +104,7 @@ The latter links can be used for OTA upgrades too like ``OtaUrl http://ota.tasmo
- Speed up initial GUI console refresh
### Fixed
- DDS238-2 wrong reactive power value [#12283](https://github.com/arendst/Tasmota/issues/12283)
- ESP32 Webcam add boundary marker before sending mjpeg image [#12376](https://github.com/arendst/Tasmota/issues/12376)
### Noted

View File

@ -67,7 +67,7 @@ void Dds2382EverySecond(void)
Energy.voltage[0] = (float)((buffer[27] << 8) + buffer[28]) / 10.0;
Energy.current[0] = (float)((buffer[29] << 8) + buffer[30]) / 100.0;
Energy.active_power[0] = (float)((buffer[31] << 8) + buffer[32]);
Energy.reactive_power[0] = (float)((buffer[33] << 8) + buffer[34]);
Energy.reactive_power[0] = (float)(int16_t)((buffer[33] << 8) + buffer[34]);
Energy.power_factor[0] = (float)((buffer[35] << 8) + buffer[36]) / 1000.0; // 1.00
Energy.frequency[0] = (float)((buffer[37] << 8) + buffer[38]) / 100.0; // 50.0 Hz
uint8_t offset = 11;