disable show debug output
This commit is contained in:
@ -28,12 +28,10 @@ void frontendSetThreshold(int32_t threshold) {
|
||||
|
||||
void frontendEnable() {
|
||||
frontendEnabled = true;
|
||||
show(DEBUG_1, ON);
|
||||
}
|
||||
|
||||
void frontendDisable() {
|
||||
frontendEnabled = false;
|
||||
show(DEBUG_1, OFF);
|
||||
}
|
||||
|
||||
void frontendAdcCallback(ADC_HandleTypeDef* hadc) {
|
||||
@ -52,8 +50,10 @@ void frontendAdcCallback(ADC_HandleTypeDef* hadc) {
|
||||
HAL_GPIO_WritePin(Frontend_Out_GPIO_Port, Frontend_Out_Pin, GPIO_PIN_SET);
|
||||
}
|
||||
} else {
|
||||
holdValue = 0;
|
||||
HAL_GPIO_WritePin(Frontend_Out_GPIO_Port, Frontend_Out_Pin, GPIO_PIN_SET);
|
||||
if (holdValue != 0) {
|
||||
holdValue = 0;
|
||||
HAL_GPIO_WritePin(Frontend_Out_GPIO_Port, Frontend_Out_Pin, GPIO_PIN_SET);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user