mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-04-10 12:59:25 +02:00
fix power calculation
This commit is contained in:
parent
33126ca3e5
commit
2b6fae6896
@ -266,7 +266,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