X-Git-Url: http://www.average.org/gitweb/?p=pulsecounter.git;a=blobdiff_plain;f=Pulsecounter-Prog.c;h=ced5632fa253abca6f0cf3b09e1e998b960bbc87;hp=400bb1d2af5dcae89be4750c3f6cf7bbb913770f;hb=9289332e07e03c86a13fbcdaa8ec3dbafd5faf09;hpb=7caf44e3ea578f3a0ee113610f433a0e85637d97 diff --git a/Pulsecounter-Prog.c b/Pulsecounter-Prog.c index 400bb1d..ced5632 100644 --- a/Pulsecounter-Prog.c +++ b/Pulsecounter-Prog.c @@ -25,6 +25,7 @@ static void gpioHandler(uint8_t id) { updatable = true; if (connected) { Pulsecounter_coldTick_indicate(); + Hal_delay(100); Pulsecounter_hotTick_indicate(); } Hal_greenLedOn(); @@ -85,6 +86,7 @@ static void tickHandler(void) { void Pulsecounter_connectHandler(void) { connected = true; + Hal_tickStop(); Hal_connected(); Hal_redLedOn(); Hal_delay(100); @@ -116,11 +118,25 @@ void Pulsecounter_hotTick_fetch(Pulsecounter_hotTick_t* const output) { } void Pulsecounter_coldSet_store(Pulsecounter_coldSet_t* const input) { - if (updatable) + Hal_greenLedOn(); + Hal_delay(100); + Hal_greenLedOff(); + Hal_delay(100); + Hal_greenLedOn(); + Hal_delay(100); + Hal_greenLedOff(); + // if (updatable) cold = *input; } void Pulsecounter_hotSet_store(Pulsecounter_hotSet_t* const input) { - if (updatable) + Hal_redLedOn(); + Hal_delay(100); + Hal_redLedOff(); + Hal_delay(100); + Hal_redLedOn(); + Hal_delay(100); + Hal_redLedOff(); + // if (updatable) hot = *input; }