Skip to content

Commit

Permalink
set reset to test to resitive touch mode
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianhugo committed Nov 15, 2023
1 parent 6e4178e commit 4cea261
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(TouchMode::Capacitative)==1) && (uBit.io.P1.isTouched(TouchMode::Capacitative)==1) && (uBit.io.P2.isTouched(TouchMode::Capacitative)==1)&& (uBit.io.P3.isTouched(TouchMode::Capacitative)==1)){
if (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 4cea261

Please sign in to comment.