disable show debug output
This commit is contained in:
parent
4e04ad6567
commit
3e1a7946c2
@ -28,12 +28,10 @@ void frontendSetThreshold(int32_t threshold) {
|
|||||||
|
|
||||||
void frontendEnable() {
|
void frontendEnable() {
|
||||||
frontendEnabled = true;
|
frontendEnabled = true;
|
||||||
show(DEBUG_1, ON);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void frontendDisable() {
|
void frontendDisable() {
|
||||||
frontendEnabled = false;
|
frontendEnabled = false;
|
||||||
show(DEBUG_1, OFF);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void frontendAdcCallback(ADC_HandleTypeDef* hadc) {
|
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);
|
HAL_GPIO_WritePin(Frontend_Out_GPIO_Port, Frontend_Out_Pin, GPIO_PIN_SET);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
holdValue = 0;
|
if (holdValue != 0) {
|
||||||
HAL_GPIO_WritePin(Frontend_Out_GPIO_Port, Frontend_Out_Pin, GPIO_PIN_SET);
|
holdValue = 0;
|
||||||
|
HAL_GPIO_WritePin(Frontend_Out_GPIO_Port, Frontend_Out_Pin, GPIO_PIN_SET);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -275,7 +275,6 @@ void mbusCommISR() {
|
|||||||
// They will be cleared by reading SR (already done above) followed by reading DR (below).
|
// They will be cleared by reading SR (already done above) followed by reading DR (below).
|
||||||
bool errorFound = false;
|
bool errorFound = false;
|
||||||
if ((isrflags & USART_SR_ORE) != RESET) {
|
if ((isrflags & USART_SR_ORE) != RESET) {
|
||||||
show(DEBUG_2, TOGGLE);
|
|
||||||
mbusCommStats.uartOverrunCnt += 1;
|
mbusCommStats.uartOverrunCnt += 1;
|
||||||
errorFound = true;
|
errorFound = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user