more receiving
This commit is contained in:
parent
be3be6709c
commit
25c02dc6ba
@ -107,6 +107,16 @@ static void handleRequestEngine(void *handle) {
|
||||
logMsg("hre state DISABLE_FRONTEND");
|
||||
localMbusCommHandle->receiving = false;
|
||||
HAL_UART_AbortReceive(&mbusUart);
|
||||
uint8_t kitchenSink = 0;
|
||||
HAL_StatusTypeDef r = HAL_UART_Receive(&mbusUart, &kitchenSink, 1, 500);
|
||||
if (r == HAL_OK) {
|
||||
logMsg("hre abort, still go one: 0x%02x", kitchenSink);
|
||||
} else if (r == HAL_TIMEOUT) {
|
||||
logMsg("hre abort, run into timeout");
|
||||
} else {
|
||||
logMsg("hre abort, some other result: %02x", r);
|
||||
}
|
||||
|
||||
frontendDisable();
|
||||
localMbusCommHandle->state = IDLE;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user