Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Socket lwip-sys lwip
Fork of AbitUSBModem by
Diff: at/ATCommandsInterface.cpp
- Revision:
- 60:763eefc845b1
- Parent:
- 59:593fb493172f
- Child:
- 61:0bcb8c5216d4
diff -r 593fb493172f -r 763eefc845b1 at/ATCommandsInterface.cpp
--- a/at/ATCommandsInterface.cpp Wed Oct 24 14:13:49 2012 +0000
+++ b/at/ATCommandsInterface.cpp Wed Oct 24 14:15:53 2012 +0000
@@ -273,8 +273,6 @@
return ret;
}
-#include "mbed.h"
-DigitalOut led_test(LED4);
int ATCommandsInterface::tryReadLine()
{
@@ -282,14 +280,12 @@
//Block on serial read or incoming command
DBG("Trying to read a new line from stream");
- led_test=1;
int ret = m_pStream->waitAvailable(); //This can be aborted
size_t readLen = 0;
if(ret == OK)
{
ret = m_pStream->read((uint8_t*)m_inputBuf + m_inputPos, &readLen, AT_INPUT_BUF_SIZE - 1 - m_inputPos, 0); //Do NOT wait at this point
}
- led_test=0;
if(ret == OK)
{
m_inputPos+=readLen;
