Skip to content

Commit 2b05891

Browse files
authored
Update HardwareSerial.cpp
1 parent b2ea1ce commit 2b05891

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cores/esp32/HardwareSerial.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ void serialEventRun(void)
119119
#if !CONFIG_DISABLE_HAL_LOCKS
120120
#define HSERIAL_MUTEX_LOCK() do {} while (xSemaphoreTake(_lock, portMAX_DELAY) != pdPASS)
121121
#define HSERIAL_MUTEX_UNLOCK() xSemaphoreGive(_lock)
122+
#else
123+
#define HSERIAL_MUTEX_LOCK()
124+
#define HSERIAL_MUTEX_UNLOCK()
122125
#endif
123126

124127
HardwareSerial::HardwareSerial(int uart_nr) :

0 commit comments

Comments
 (0)