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