Skip to content

Commit

Permalink
make reset to test harder
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianhugo committed Nov 15, 2023
1 parent 4cea261 commit 1c621d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/samples/Menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1c621d1

Please sign in to comment.