File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232 void printCalibration ();
3333#endif
3434
35- #if ESP_ARDUINO_VERSION_MAJOR >= 2
36- #error "Please use esp32 Arduino version 1.x. Versions 2.x and above are unsupported."
35+ #if ESP_ARDUINO_VERSION_MAJOR == 2 && ESP_ARDUINO_VERSION_MINOR ==0 && ESP_ARDUINO_VERSION_PATCH <= 5
36+ #error "Arduino ESP32 versions 2.0.0-2.0.5 are unsupported."
3737#endif
3838
3939// DO NOT EDIT THIS FILE. ADJUST THE CONFIGURATION IN THE platformio.ini
@@ -251,7 +251,7 @@ void readSerialData()
251251 uint16_t internalIndex = min (Serial.available (), MAX_BUFFER);
252252
253253 if (internalIndex > 0 )
254- internalIndex = Serial.readBytes (base.buffer , internalIndex);
254+ internalIndex = Serial.read (base.buffer , internalIndex);
255255
256256 if (internalIndex > 0 && curTime - stats.start > 1000 )
257257 {
@@ -424,9 +424,9 @@ void readSerialData()
424424void setup ()
425425{
426426 // Init serial port
427+ Serial.setRxBufferSize (2048 );
427428 Serial.begin (SERIALCOM_SPEED);
428- Serial.setTimeout (50 );
429- Serial.setRxBufferSize (MAX_BUFFER);
429+ Serial.setTimeout (50 );
430430
431431 // Display config
432432 Serial.println (" \r\n Welcome!\r\n Awa driver 7." );
You can’t perform that action at this time.
0 commit comments