Skip to content

Commit

Permalink
Merge pull request #540 from david-cermak/fix/modem_uart_missed_event
Browse files Browse the repository at this point in the history
fix(modem): Fixed UART task to check for buffered data periodically
  • Loading branch information
david-cermak authored Apr 11, 2024
2 parents 887dbcd + 4bdd90c commit c4d9cc6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/esp_modem/src/esp_modem_uart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ void UartTerminal::task()
ESP_LOGW(TAG, "unknown uart event type: %d", event.type);
break;
}
} else {
uart_get_buffered_data_len(uart.port, &len);
if (len && on_read) {
on_read(nullptr, len);
}
}
}
}
Expand Down

0 comments on commit c4d9cc6

Please sign in to comment.