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.
Dependents: M2X_dev axeda_wrapper_dev MTS_M2x_Example1 MTS_Cellular_Connect_Example ... more
Diff: io/MTSSerialFlowControl.cpp
- 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
uIP Socket Modem Shield (Outdated - see below)