X-Git-Url: http://www.average.org/gitweb/?p=pulsecounter.git;a=blobdiff_plain;f=Pulsecounter-Prog.c;h=62efd73b3e0daa1bb0fa9b26f04bca0238fc0f02;hp=1507b24fea482d97b2a56ddee915e754b90a8f79;hb=ca5bd37eed3f758a3ecbf24f482c403b69a0141f;hpb=a210dfa3087cdca2393e7a4f3611e654f4724b53 diff --git a/Pulsecounter-Prog.c b/Pulsecounter-Prog.c index 1507b24..62efd73 100644 --- a/Pulsecounter-Prog.c +++ b/Pulsecounter-Prog.c @@ -11,9 +11,11 @@ void main() { } static void buttonHandler(void) { - Hal_ledOn(); + Hal_greenLedOn(); + Hal_redLedOn(); Hal_delay(500); - Hal_ledOff(); + Hal_greenLedOff(); + Hal_redLedOff(); Pulsecounter_event3_indicate(); } @@ -28,7 +30,7 @@ void Pulsecounter_disconnectHandler(void) { } void Pulsecounter_event3_fetch(Pulsecounter_event3_t* const output) { - *output = 3; + *output = buttonCnt; } void Pulsecounter_event4_fetch(Pulsecounter_event4_t* const output) {