From aa783e6ac401492e1d9af16b81150d04ab3d081b Mon Sep 17 00:00:00 2001 From: Rodrigo Garcia Date: Mon, 28 Mar 2022 11:04:38 -0300 Subject: [PATCH] Reordering - HardwareSerial Constructor (#6492) --- cores/esp32/HardwareSerial.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cores/esp32/HardwareSerial.h b/cores/esp32/HardwareSerial.h index d886bdc5..b7aafb68 100644 --- a/cores/esp32/HardwareSerial.h +++ b/cores/esp32/HardwareSerial.h @@ -161,18 +161,18 @@ protected: size_t _rxBufferSize; size_t _txBufferSize; OnReceiveCb _onReceiveCB; + OnReceiveErrorCb _onReceiveErrorCB; // _onReceive and _rxTimeout have be consistent when timeout is disabled bool _onReceiveTimeout; uint8_t _rxTimeout; - OnReceiveErrorCb _onReceiveErrorCB; TaskHandle_t _eventTask; +#if !CONFIG_DISABLE_HAL_LOCKS + SemaphoreHandle_t _lock; +#endif void _createEventTask(void *args); void _destroyEventTask(void); static void _uartEventTask(void *args); -#if !CONFIG_DISABLE_HAL_LOCKS - SemaphoreHandle_t _lock; -#endif }; extern void serialEventRun(void) __attribute__((weak));