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.
Diff: main.cpp
- Revision:
- 4:50108ed2e507
- Parent:
- 3:d59225786982
- Child:
- 5:8279d323e992
--- a/main.cpp	Fri Dec 11 07:00:23 2020 +0000
+++ b/main.cpp	Fri Dec 11 08:14:47 2020 +0000
@@ -61,8 +61,8 @@
     {
         //Send "Hello PC" to the PC board
         int i = 0;
-        char data[] = "Hello PC !\r\n";
-        int dataSize = 16;
+        char* data = "Hello PC !\r\n";
+        int dataSize = sizeof(data);
 
         // add datas to the transmit buffer
         txData[txDataCnt++] = data[i++];