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.
Dependencies: MTS-Serial libmDot mbed-rtos mbed
Fork of mDot_USB_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;
}
