Skip to content

Commit 82e41e0

Browse files
authored
Revert "Reordering - HardwareSerial Constructor (espressif#6492)"
This reverts commit aa783e6.
1 parent 1e388a2 commit 82e41e0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cores/esp32/HardwareSerial.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -161,18 +161,18 @@ class HardwareSerial: public Stream
161161
size_t _rxBufferSize;
162162
size_t _txBufferSize;
163163
OnReceiveCb _onReceiveCB;
164-
OnReceiveErrorCb _onReceiveErrorCB;
165164
// _onReceive and _rxTimeout have be consistent when timeout is disabled
166165
bool _onReceiveTimeout;
167166
uint8_t _rxTimeout;
167+
OnReceiveErrorCb _onReceiveErrorCB;
168168
TaskHandle_t _eventTask;
169-
#if !CONFIG_DISABLE_HAL_LOCKS
170-
SemaphoreHandle_t _lock;
171-
#endif
172169

173170
void _createEventTask(void *args);
174171
void _destroyEventTask(void);
175172
static void _uartEventTask(void *args);
173+
#if !CONFIG_DISABLE_HAL_LOCKS
174+
SemaphoreHandle_t _lock;
175+
#endif
176176
};
177177

178178
extern void serialEventRun(void) __attribute__((weak));

0 commit comments

Comments
 (0)