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

@ -1,6 +1,6 @@
#include <main.h>
#include <loopCtrl.h>
#include <led.h>
#include <signal.h>
bool loopActive = false;
@ -20,7 +20,7 @@ void loopDisable() {
void loopStatusCallback() {
GPIO_PinState status = HAL_GPIO_ReadPin(Loop_Status_GPIO_Port, Loop_Status_Pin);
if (status == GPIO_PIN_SET) {
led(RED, ON);
signal(LED_RED, ON);
loopActive = false;
}
}