Multi-Hackers / SocketModem

Dependents:   M2X_dev axeda_wrapper_dev MTS_M2x_Example1 MTS_Cellular_Connect_Example ... more

Revision:
84:77c5ab16534d
Parent:
78:ef3ee53cf5df
Child:
85:b17ad6781c5b
--- a/io/MTSSerialFlowControl.cpp	Thu Dec 26 23:32:02 2013 +0000
+++ b/io/MTSSerialFlowControl.cpp	Fri Dec 27 15:51:19 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);
@@ -76,6 +72,4 @@
         }
     }
 
-}
-
-#endif /* MTSSERIALFLOWCONTROL */
\ No newline at end of file
+}
\ No newline at end of file