fork of VodafoneUSBModem with updated USBHost library
Dependencies: Socket USBHost lwip-sys lwip
Dependents: VodafoneUSBModemSMSTest
Diff: at/ATCommandsInterface.cpp
- Revision:
- 79:a6ac8206a58d
- Parent:
- 75:ff3e5d1e82ca
- Child:
- 83:897a0de9d668
diff -r f0cb615d0074 -r a6ac8206a58d at/ATCommandsInterface.cpp --- a/at/ATCommandsInterface.cpp Wed Dec 19 09:32:58 2012 +0000 +++ b/at/ATCommandsInterface.cpp Wed Jan 09 16:13:50 2013 +0000 @@ -17,7 +17,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#define __DEBUG__ 4 //ERR+WARN +#define __DEBUG__ 0 //ERR+WARN #ifndef __MODULE__ #define __MODULE__ "ATCommandsInterface.cpp" #endif @@ -863,6 +863,17 @@ return OK; } +void ATCommandsInterface::pause() { + DBG("pausing at commands interface"); + m_pStream->abortRead(); + m_processingThread.signal_set(AT_SIG_PROCESSING_STOP); +} + +void ATCommandsInterface::restart() { + DBG("restarting AT commands interface"); + m_processingThread.signal_set(AT_SIG_PROCESSING_START); +} + void ATCommandsInterface::process() //Processing thread { DBG("AT Thread started");