mirror of
https://github.com/liberatedsystems/RNode_Firmware_CE.git
synced 2025-07-29 01:18:48 -04:00
Work on ESP32 compatibility
This commit is contained in:
parent
36926d80ad
commit
f80230ffe7
3 changed files with 19 additions and 9 deletions
|
@ -25,7 +25,8 @@ void setup() {
|
|||
#if MCU_VARIANT == MCU_ESP32
|
||||
delay(500);
|
||||
EEPROM.begin(EEPROM_SIZE);
|
||||
Serial.setRxBufferSize(CONFIG_UART_BUFFER_SIZE);
|
||||
// TODO: Check this
|
||||
//Serial.setRxBufferSize(CONFIG_UART_BUFFER_SIZE);
|
||||
#endif
|
||||
|
||||
// Seed the PRNG
|
||||
|
@ -710,8 +711,11 @@ void serial_poll() {
|
|||
serial_polling = false;
|
||||
}
|
||||
|
||||
|
||||
#define MAX_CYCLES 20
|
||||
#if MCU_VARIANT != MCU_ESP32
|
||||
#define MAX_CYCLES 20
|
||||
#else
|
||||
#define MAX_CYCLES 1
|
||||
#endif
|
||||
void buffer_serial() {
|
||||
if (!serial_buffering) {
|
||||
serial_buffering = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue