refactor signaling with led and debug pins
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user