Skip to content

Commit 50a276e

Browse files
author
Ari Parkkila
committed
Cellular: Fix Quectel BG96 driver RTS/CTS setup
1 parent 9329430 commit 50a276e

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

features/cellular/framework/targets/QUECTEL/BG96/QUECTEL_BG96.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void QUECTEL_BG96::set_ready_cb(Callback<void()> callback)
7373
CellularDevice *CellularDevice::get_default_instance()
7474
{
7575
static UARTSerial serial(MBED_CONF_QUECTEL_BG96_TX, MBED_CONF_QUECTEL_BG96_RX, MBED_CONF_QUECTEL_BG96_BAUDRATE);
76-
#if defined (MBED_CONF_UBLOX_AT_RTS) && defined(MBED_CONF_UBLOX_AT_CTS)
76+
#if defined (MBED_CONF_QUECTEL_BG96_RTS) && defined(MBED_CONF_QUECTEL_BG96_CTS)
7777
tr_debug("QUECTEL_BG96 flow control: RTS %d CTS %d", MBED_CONF_QUECTEL_BG96_RTS, MBED_CONF_QUECTEL_BG96_CTS);
7878
serial.set_flow_control(SerialBase::RTSCTS, MBED_CONF_QUECTEL_BG96_RTS, MBED_CONF_QUECTEL_BG96_CTS);
7979
#endif

features/cellular/framework/targets/QUECTEL/BG96/QUECTEL_BG96_CellularStack.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,10 +255,6 @@ nsapi_size_or_error_t QUECTEL_BG96_CellularStack::socket_sendto_impl(CellularSoc
255255
return NSAPI_ERROR_PARAMETER;
256256
}
257257

258-
if (!size && socket->proto == NSAPI_UDP) {
259-
return NSAPI_ERROR_UNSUPPORTED;
260-
}
261-
262258
int sent_len = 0;
263259
int sent_len_before = 0;
264260
int sent_len_after = 0;

0 commit comments

Comments
 (0)