From 99c84525c121159a17af0bae98e7e9a524177684 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emil=20Gaj=C5=A1ak?= Date: Fri, 8 Nov 2019 13:19:05 +0100 Subject: [PATCH] Raised calibration voltage offset --- src/MAKERphone.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MAKERphone.cpp b/src/MAKERphone.cpp index e367e23..662a733 100644 --- a/src/MAKERphone.cpp +++ b/src/MAKERphone.cpp @@ -3649,7 +3649,7 @@ void MAKERphone::lockscreen() if(measureCounter == 5) { meanMeasure = measureSum / 5; - if(digitalRead(CHRG_INT) && abs(1889 - meanMeasure) < 200 + if(digitalRead(CHRG_INT) && abs(1889 - meanMeasure) < 250 && buttons.timeHeld(BTN_1) > 0 && buttons.timeHeld(BTN_3) > 0 && buttons.timeHeld(BTN_5) > 0 && buttons.timeHeld(BTN_7) > 0 && buttons.timeHeld(BTN_9) > 0 && buttons.timeHeld(BTN_0) > 0) //safety checks before calibrating