From ab0242b073dd25d311680ff761ea9f8fea1bd537 Mon Sep 17 00:00:00 2001 From: sirrow Date: Sun, 30 Jan 2022 17:12:22 +0900 Subject: [PATCH] fix bug, not to add timer handler in mode 0 --- connect_switch.ino | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/connect_switch.ino b/connect_switch.ino index e865f8d..33d93c2 100644 --- a/connect_switch.ino +++ b/connect_switch.ino @@ -129,8 +129,10 @@ void setup() gameMode = 1; } - MsTimer2::set(1, perms); - MsTimer2::start(); + if(gameMode == 1){ + MsTimer2::set(1, perms); + MsTimer2::start(); + } } void handleButtonInput(ButtonInfo *but)