Skip to content

Commit 240a23e

Browse files
committed
GSM: Gemalto: RTS should be fixed to LOW
1 parent e2b310c commit 240a23e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

libraries/GSM/src/GSM.cpp

+3-4
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
mbed::CellularDevice *mbed::CellularDevice::get_default_instance()
1010
{
1111
static mbed::BufferedSerial serial(MBED_CONF_GEMALTO_CINTERION_TX, MBED_CONF_GEMALTO_CINTERION_RX, 115200);
12-
#if defined(MBED_CONF_GEMALTO_CINTERION_RTS) && defined(MBED_CONF_GEMALTO_CINTERION_CTS)
13-
serial.set_flow_control(mbed::SerialBase::RTSCTS_SW, MBED_CONF_GEMALTO_CINTERION_RTS, MBED_CONF_GEMALTO_CINTERION_CTS);
14-
#endif
12+
serial.set_flow_control(mbed::SerialBase::RTSCTS_SW, MBED_CONF_GEMALTO_CINTERION_CTS, NC);
1513
static mbed::GEMALTO_CINTERION device(&serial);
1614
return &device;
1715
}
@@ -22,7 +20,8 @@ int arduino::GSMClass::begin(const char* pin, const char* apn, const char* usern
2220
return 0;
2321
}
2422

25-
static mbed::DigitalOut on(PJ_7, 1);
23+
pinMode(PJ_7, INPUT_PULLDOWN);
24+
static mbed::DigitalOut rts(MBED_CONF_GEMALTO_CINTERION_RTS, 0);
2625

2726
_context->set_sim_pin(pin);
2827

0 commit comments

Comments
 (0)