From ab5fbfc7a3dd5f96f3e4980a73ea186b5cc23763 Mon Sep 17 00:00:00 2001 From: Benjamin Wilson Date: Mon, 7 Apr 2025 12:37:21 -0400 Subject: [PATCH] power test adjustment for 602 --- main/self_test/self_test.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main/self_test/self_test.c b/main/self_test/self_test.c index 68798fd6..c3258fba 100644 --- a/main/self_test/self_test.c +++ b/main/self_test/self_test.c @@ -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);