stop counter on connect
authorEugene Crosser <crosser@average.org>
Sat, 12 Dec 2015 11:01:53 +0000 (14:01 +0300)
committerEugene Crosser <crosser@average.org>
Sat, 12 Dec 2015 11:01:53 +0000 (14:01 +0300)
Pulsecounter-Prog.c

index 400bb1d2af5dcae89be4750c3f6cf7bbb913770f..317fb7c8a11e0701afeb58c0713e8b717ae47119 100644 (file)
@@ -85,6 +85,7 @@ static void tickHandler(void) {
 
 void Pulsecounter_connectHandler(void) {
     connected = true;
+    Hal_tickStop();
     Hal_connected();
     Hal_redLedOn();
     Hal_delay(100);