X-Git-Url: http://www.average.org/gitweb/?p=pulsecounter.git;a=blobdiff_plain;f=Pulsecounter-Prog.c;h=f5071784b56c41126d9d58559242d7bf0ea0b090;hp=2c3256d849ee1eabac4e03815f8e3f0743585246;hb=13db6cae32995a2f76fb4b4f1c5f40cea2470a55;hpb=b0aee467c6cb053f9ad754e93b349e4e45cc0860 diff --git a/Pulsecounter-Prog.c b/Pulsecounter-Prog.c index 2c3256d..f507178 100644 --- a/Pulsecounter-Prog.c +++ b/Pulsecounter-Prog.c @@ -4,6 +4,7 @@ static void buttonHandler(void); static void tickHandler(void); static bool connected = false; +static int32_t buttonCnt = 0; void main() { Hal_init(); @@ -16,6 +17,7 @@ void main() { static void buttonHandler(void) { uint8_t i; + buttonCnt++; if (connected) Pulsecounter_event3_indicate(); else @@ -23,7 +25,7 @@ static void buttonHandler(void) { for (i = 0; i < 3; i++) { Hal_greenLedOn(); Hal_redLedOn(); - Hal_delay(100); + Hal_delay(10); Hal_greenLedOff(); Hal_redLedOff(); }