only calibrate if ADC detected
This commit is contained in:
1 parent
4ec6c249b3
commit
6a08b25727
1 file changed
+3
-3
+3
-3
@@ -408,14 +408,14 @@ void setup() {
|
|||||||
if (pass == startpass+1) {
|
if (pass == startpass+1) {
|
||||||
Serial.println(" done");
|
Serial.println(" done");
|
||||||
delay(20);
|
delay(20);
|
||||||
|
Serial.print("Calibrating current sensors..");
|
||||||
|
set_offset();
|
||||||
|
Serial.println(" done");
|
||||||
} else {
|
} else {
|
||||||
Serial.println(" WARNING: ADC not detected");
|
Serial.println(" WARNING: ADC not detected");
|
||||||
set_hex(0xF8);
|
set_hex(0xF8);
|
||||||
delay(500);
|
delay(500);
|
||||||
}
|
}
|
||||||
Serial.print("Calibrating current sensors..");
|
|
||||||
set_offset();
|
|
||||||
Serial.println("done");
|
|
||||||
|
|
||||||
Serial.print("Checking OSMC 1..");
|
Serial.print("Checking OSMC 1..");
|
||||||
set_hex(0x9);
|
set_hex(0x9);
|
||||||
|
|||||||
Reference in new issue
Block a user