Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit aa783e6

Browse filesBrowse files
authored
Reordering - HardwareSerial Constructor (espressif#6492)
1 parent 9d188f5 commit aa783e6
Copy full SHA for aa783e6

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed

‎cores/esp32/HardwareSerial.h

Copy file name to clipboardExpand all lines: cores/esp32/HardwareSerial.h
+4-4Lines changed: 4 additions & 4 deletions
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;
164165
// _onReceive and _rxTimeout have be consistent when timeout is disabled
165166
bool _onReceiveTimeout;
166167
uint8_t _rxTimeout;
167-
OnReceiveErrorCb _onReceiveErrorCB;
168168
TaskHandle_t _eventTask;
169+
#if !CONFIG_DISABLE_HAL_LOCKS
170+
SemaphoreHandle_t _lock;
171+
#endif
169172

170173
void _createEventTask(void *args);
171174
void _destroyEventTask(void);
172175
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.