Skip to content

Commit

Permalink
Update drv_bl_shared.c
Browse files Browse the repository at this point in the history
  • Loading branch information
2Fblob authored Nov 2, 2024
1 parent de34436 commit ec25305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/driver/drv_bl_shared.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ec25305

Please sign in to comment.