refactor signaling with led and debug pins

This commit is contained in:
2020-11-01 22:15:04 +01:00
parent 99addddede
commit b7f32a6bf6
9 changed files with 53 additions and 103 deletions

View File

@ -3,7 +3,7 @@
#include <PontCoopScheduler.h>
#include <mbusComm.h>
#include <loopCtrl.h>
#include <led.h>
#include <signal.h>
#include <logger.h>
#include <frontend.h>
@ -48,7 +48,7 @@ static void handleRequestEngine(void *handle) {
case SEND_CONT:
logMsg("hre state SEND_CONT");
led(RED, OFF);
signal(LED_RED, OFF);
if (! loopActive) {
logMsg("hre enabling loop, try %d", localMbusCommHandle->retryCnt);
localMbusCommHandle->retryCnt++;