File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
components/wifi/esp8266-driver/ESP8266 Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,7 @@ struct ESP8266::fw_at_version ESP8266::at_version()
153
153
bool ESP8266::stop_uart_hw_flow_ctrl (void )
154
154
{
155
155
bool done = true ;
156
+ #if DEVICE_SERIAL_FC
156
157
157
158
if (_serial_rts != NC || _serial_cts != NC) {
158
159
// Stop board's flow control
@@ -163,15 +164,17 @@ bool ESP8266::stop_uart_hw_flow_ctrl(void)
163
164
&& _parser.recv (" OK\n " );
164
165
}
165
166
167
+ #endif
166
168
return done;
167
169
}
168
170
169
171
bool ESP8266::start_uart_hw_flow_ctrl (void )
170
172
{
171
173
bool done = true ;
172
174
175
+ #if DEVICE_SERIAL_FC
173
176
if (_serial_rts != NC && _serial_cts != NC) {
174
- // Start board's flow control
177
+ // Start board's flow control
175
178
_serial.set_flow_control (SerialBase::RTSCTS, _serial_rts, _serial_cts);
176
179
177
180
// Start ESP8266's flow control
@@ -192,7 +195,11 @@ bool ESP8266::start_uart_hw_flow_ctrl(void)
192
195
193
196
_serial.set_flow_control (SerialBase::CTS, NC, _serial_cts);
194
197
}
195
-
198
+ #else
199
+ if (_serial_rts != NC || _serial_cts != NC) {
200
+ done = false ;
201
+ }
202
+ #endif
196
203
return done;
197
204
}
198
205
You can’t perform that action at this time.
0 commit comments