From 6a08b257276358cecc7b31265e180add0f80423a Mon Sep 17 00:00:00 2001 From: Amelia Deck Date: Wed, 7 Oct 2026 13:11:39 -0500 Subject: [PATCH] only calibrate if ADC detected --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index b1566cf..06ee31b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -408,14 +408,14 @@ void setup() { if (pass == startpass+1) { Serial.println(" done"); delay(20); + Serial.print("Calibrating current sensors.."); + set_offset(); + Serial.println(" done"); } else { Serial.println(" WARNING: ADC not detected"); set_hex(0xF8); delay(500); } - Serial.print("Calibrating current sensors.."); - set_offset(); - Serial.println("done"); Serial.print("Checking OSMC 1.."); set_hex(0x9);