still receiving

This commit is contained in:
2020-11-02 15:56:54 +01:00
parent ed02d75f45
commit fd05813cdf
2 changed files with 4 additions and 1 deletions

View File

@ -39,7 +39,7 @@ void my_setup_2() {
frontendInit();
frontendSetThreshold(240);
schAdd(helloMeterbus, NULL, 0, 1000);
schAdd(helloMeterbus, NULL, 0, 5000);
}
void my_loop() {
@ -66,12 +66,14 @@ void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc) {
}
void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart) {
logMsg("TX_CPLT");
if (huart == &mbusUart) {
mbusCommTxCpltCallback(huart);
}
}
void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) {
logMsg("RX_CPLT");
if (huart == &mbusUart) {
mbusCommRxCpltCallback(huart);
}