Serial library for MTS Socket Modem Arduino Shield devices from Multi-Tech Systems

Dependents:   mDot_AT_firmware mtsas mtsas MTDOT-EVB-LinkCheck-AL ... more

Revision:
10:b18a1064dfc6
Parent:
4:d348d001283b
Child:
12:e12b79a4ab4f
--- a/MTSSerialFlowControl.cpp	Mon Aug 11 15:44:14 2014 +0000
+++ b/MTSSerialFlowControl.cpp	Fri Jan 23 16:52:25 2015 -0600
@@ -14,7 +14,7 @@
     notifyStartSending();
 
     // Calculate the high and low watermark values
-    highThreshold = MAX(rxBufSize - 10, rxBufSize * 0.85);
+    highThreshold = mts_max(rxBufSize - 10, rxBufSize * 0.85);
     lowThreshold = rxBufSize * 0.3;
 
     // Setup the low watermark callback on the internal receive buffer