Skip to content

Commit 21ccbc9

Browse files
sandeepmistrycmaglie
authored andcommitted
Lower ADC threshold to 600 (was 800)
1 parent 840e73f commit 21ccbc9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

variants/mkrgsm1400/variant.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,9 @@ void initVariant() {
217217
pinMode(ADC_BATTERY, INPUT);
218218
delay(100);
219219

220-
if (analogRead(ADC_BATTERY) > 800) {
220+
if (analogRead(ADC_BATTERY) > 600) {
221221
enable_battery_charging();
222-
}
223-
else{
222+
} else {
224223
disable_battery_charging();
225224
}
226225

0 commit comments

Comments
 (0)