debug pin call refactored

This commit is contained in:
2020-11-01 22:50:50 +01:00
parent 8bfe2d229d
commit 38feb642c7

View File

@ -36,7 +36,7 @@ void frontendDisable() {
void frontendAdcCallback(ADC_HandleTypeDef* hadc) {
static int32_t holdValue = 0;
HAL_GPIO_TogglePin(Debug_Signal_1_GPIO_Port, Debug_Signal_1_Pin);
signal(DEBUG_2, TOGGLE);
if (frontendEnabled) {
int32_t currentValue = (int32_t) HAL_ADC_GetValue(hadc);