Skip to content

Commit 938e0e5

Browse files
committed
Fix compile error when USE_HW_FLOW_CTRL defined
1 parent b5fafbc commit 938e0e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

esp_modem/esp_modem.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ void setup()
123123
digitalWrite(LED_PIN, HIGH);
124124
}
125125

126-
126+
#ifdef USE_HW_FLOW_CTRL
127127
void setHardwareFlow() {
128128
// Enable flow control of DTE -> ESP8266 data with RTS
129129
// RTS on the EPS8266 is pin GPIO15 which is physical pin 16
@@ -139,6 +139,7 @@ void setHardwareFlow() {
139139
pinMode(ESP_CTS, FUNCTION_4); // make pin U0CTS
140140
SET_PERI_REG_MASK(UART_CONF0(0), UART_TX_FLOW_EN);
141141
}
142+
#endif
142143

143144
void helpMessage()
144145
{

0 commit comments

Comments
 (0)