[beken-72xx] Fix SerialClass character reading
This commit is contained in:
@@ -26,7 +26,10 @@ SerialClass::SerialClass(uint8_t port) {
|
||||
|
||||
static void callback(int port, void *param) {
|
||||
RingBuffer *buf = (RingBuffer *)param;
|
||||
buf->store_char(uart_read_byte(port));
|
||||
int ch;
|
||||
while ((ch = uart_read_byte(port)) != -1) {
|
||||
buf->store_char(ch);
|
||||
}
|
||||
}
|
||||
|
||||
void SerialClass::begin(unsigned long baudrate, uint16_t config) {
|
||||
|
||||
@@ -129,4 +129,6 @@
|
||||
#define THD_UMP3_PRIORITY 4
|
||||
#define THD_WPAS_PRIORITY 5
|
||||
#define THDD_KEY_SCAN_PRIORITY 7
|
||||
#define UART1_USE_FIFO_REC 0
|
||||
#define UART2_USE_FIFO_REC 0
|
||||
#define WIFI_DEFAULT_BLE_REQUEST 1
|
||||
|
||||
@@ -113,4 +113,6 @@
|
||||
#define THD_UMP3_PRIORITY 4
|
||||
#define THD_WPAS_PRIORITY 5
|
||||
#define THDD_KEY_SCAN_PRIORITY 7
|
||||
#define UART1_USE_FIFO_REC 0
|
||||
#define UART2_USE_FIFO_REC 0
|
||||
#define WIFI_DEFAULT_BLE_REQUEST 1
|
||||
|
||||
Reference in New Issue
Block a user