few changes for RTS/CTS control
Dependencies: MTS-Serial libmDot mbed-rtos mbed
Fork of mDot_AT_firmware by
Diff: CommandTerminal/CmdSendString.cpp
- Revision:
- 2:e5eebd74d36d
- Parent:
- 1:e52ae6584f1c
- Child:
- 4:666017851052
--- a/CommandTerminal/CmdSendString.cpp Thu Jun 25 10:23:41 2015 -0500 +++ b/CommandTerminal/CmdSendString.cpp Fri Jul 10 09:43:56 2015 -0500 @@ -52,8 +52,11 @@ return true; } - if (args.size() == 2) { - if (args[1].size() > 242) { + if (args.size() >= 2) { + size_t size = 0; + for (int i = 1; i < args.size(); i++) + size += args[i].size(); + if (size > 242) { setErrorMessage("Invalid packet, expects (string:242)"); return false; }