mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-04-22 14:34:30 +02:00
power test adjustment for 602
This commit is contained in:
parent
6de4609f92
commit
ab5fbfc7a3
@ -539,7 +539,12 @@ void self_test(void * pvParameters)
|
||||
}
|
||||
break;
|
||||
case DEVICE_GAMMA:
|
||||
if (test_TPS546_power_consumption(POWER_CONSUMPTION_TARGET_GAMMA, POWER_CONSUMPTION_MARGIN) != ESP_OK) {
|
||||
int power_correction = 0;
|
||||
// The 602 has a higher apparent power consumption due to less resistive losses and higher measured voltage.
|
||||
if(GLOBAL_STATE->board_version >= 602){
|
||||
power_correction += 3;
|
||||
}
|
||||
if (test_TPS546_power_consumption(POWER_CONSUMPTION_TARGET_GAMMA + power_correction, POWER_CONSUMPTION_MARGIN) != ESP_OK) {
|
||||
ESP_LOGE(TAG, "TPS546 Power Draw Failed, target %.2f", (float)POWER_CONSUMPTION_TARGET_GAMMA);
|
||||
display_msg("POWER:FAIL", GLOBAL_STATE);
|
||||
tests_done(GLOBAL_STATE, TESTS_FAILED);
|
||||
|
Loading…
x
Reference in New Issue
Block a user