From 1c621d17072e22b62e0212bdc1b02a2a6b4bb7e0 Mon Sep 17 00:00:00 2001 From: fabianhugo Date: Wed, 15 Nov 2023 17:16:45 +0100 Subject: [PATCH] make reset to test harder --- source/samples/Menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/samples/Menu.cpp b/source/samples/Menu.cpp index 13b79335..51e2a6ce 100644 --- a/source/samples/Menu.cpp +++ b/source/samples/Menu.cpp @@ -60,7 +60,7 @@ menustate_t menuWaitForChoice(menustate_t start) return state; } // reset to test mode by touching all 4 edges - if (uBit.io.P0.isTouched() && uBit.io.P1.isTouched() && uBit.io.P2.isTouched() && uBit.io.P3.isTouched()){ + if ((uBit.accelerometer.getZ() > 900) && uBit.io.P0.isTouched() && uBit.io.P1.isTouched() && uBit.io.P2.isTouched() && uBit.io.P3.isTouched()){ uBit.storage.remove("counter"); uBit.display.print("TestMode"); uBit.reset();