diff --git a/src/driver/drv_bl_shared.c b/src/driver/drv_bl_shared.c index 28adfda44..f436e2e40 100644 --- a/src/driver/drv_bl_shared.c +++ b/src/driver/drv_bl_shared.c @@ -963,7 +963,7 @@ void BL_ProcessUpdate(float voltage, float current, float power, ? 0 : sqrtf(powf(sensors[OBK_POWER_APPARENT].lastReading, 2) - powf(sensors[OBK_POWER].lastReading, 2))); */ - sensors[OBK_POWER_REACTIVE].lastReading = net_energy; + sensors[OBK_POWER_REACTIVE].lastReading = ((int)net_energy); sensors[OBK_POWER_FACTOR].lastReading = (sensors[OBK_POWER_APPARENT].lastReading == 0 ? 1 : sensors[OBK_POWER].lastReading / sensors[OBK_POWER_APPARENT].lastReading);