A library for talking to Multi-Tech's Cellular SocketModem Devices.

Dependents:   M2X_dev axeda_wrapper_dev MTS_M2x_Example1 MTS_Cellular_Connect_Example ... more

Revision:
85:b17ad6781c5b
Parent:
81:45e1359a5c69
Parent:
84:77c5ab16534d
Child:
86:186bbf974c7c
--- a/io/MTSSerialFlowControl.cpp	Fri Dec 27 15:41:24 2013 +0000
+++ b/io/MTSSerialFlowControl.cpp	Fri Dec 27 16:20:32 2013 +0000
@@ -1,6 +1,3 @@
-#ifndef MTSSERIALFLOWCONTROL_CPP
-#define MTSSERIALFLOWCONTROL_CPP
-
 #include "MTSSerialFlowControl.h"
 
 using namespace mts;
@@ -15,8 +12,7 @@
     cts = new DigitalIn(CTS);
     notifyStartSending();
 
-    //highThreshold = MAX(rxBufSize - 10, rxBufSize * 0.85);
-    highThreshold = 10;
+    highThreshold = MAX(rxBufSize - 10, rxBufSize * 0.85);
     lowThreshold = rxBufSize * 0.3;
 
     rxBuffer->attach(this, &MTSSerialFlowControl::notifyStartSending, lowThreshold, Vars::LESS);
@@ -74,5 +70,3 @@
         }
     }
 }
-
-#endif /* MTSSERIALFLOWCONTROL */
\ No newline at end of file