From 4f4f9f48875259c7cad10ff7221769d7cfe99ea8 Mon Sep 17 00:00:00 2001 From: AJIOB Date: Mon, 4 Sep 2017 23:01:38 +0300 Subject: [PATCH] Timer resetting was added after connecting new device (arduino-fw) --- code/Arduino/peripheral/ConnectionController.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/Arduino/peripheral/ConnectionController.cpp b/code/Arduino/peripheral/ConnectionController.cpp index 99b396d..d9ca3ee 100644 --- a/code/Arduino/peripheral/ConnectionController.cpp +++ b/code/Arduino/peripheral/ConnectionController.cpp @@ -144,6 +144,7 @@ String ConnectionController::getCommand() { isConnected = false; waitForConnection(); + timer.reset(); continue; } @@ -163,6 +164,7 @@ String ConnectionController::getCommand() { isConnected = false; waitForConnection(); + timer.reset(); continue; }