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: mbed-src MODSERIAL
Revision 3:2f5485de3328, committed 2013-10-19
- Comitter:
- edodm85
- Date:
- Sat Oct 19 12:02:30 2013 +0000
- Parent:
- 2:08505f23f37a
- Child:
- 4:54c1dc468534
- Commit message:
- Added clear buffer
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Oct 18 21:31:21 2013 +0000
+++ b/main.cpp Sat Oct 19 12:02:30 2013 +0000
@@ -76,6 +76,7 @@
i++;
}
commandAT(ATCmd);
+ memset(ATCmd, 0, sizeof(ATCmd));
new_send = false;
}else
if(new_response)
@@ -86,7 +87,8 @@
blueChar[i] = blue.getc();
i++;
}
- printf("Response: %s", blueChar);
+ printf("Response: %s", blueChar);
+ memset(blueChar, 0, sizeof(blueChar));
new_response = false;
}
wait_ms(100);
Bluetooth HC-05