X-Git-Url: http://www.average.org/gitweb/?p=pulsecounter.git;a=blobdiff_plain;f=Pulsecounter-Prog.c;h=ced5632fa253abca6f0cf3b09e1e998b960bbc87;hp=317fb7c8a11e0701afeb58c0713e8b717ae47119;hb=a95f4d9f58554e4d34141964212b8f5b8b10d69e;hpb=1bdd8a835a5eefe1fb6fe631d1de47e0967c5ef5 diff --git a/Pulsecounter-Prog.c b/Pulsecounter-Prog.c index 317fb7c..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(); @@ -117,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; }