mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-04-11 21:39:16 +02:00
fix power calculation
This commit is contained in:
parent
bd1bd73d0e
commit
ef6a25102b
@ -294,7 +294,7 @@ void POWER_MANAGEMENT_HEX_task(void * pvParameters)
|
||||
|
||||
|
||||
power_management->voltage = TPS546_get_vin() * 1000;
|
||||
power_management->current = TPS546_get_iout();
|
||||
power_management->current = TPS546_get_iout() * 1000;
|
||||
|
||||
// calculate regulator power (in milliwatts)
|
||||
power_management->power = (TPS546_get_vout() * power_management->current) / 1000;
|
||||
|
Loading…
x
Reference in New Issue
Block a user