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:
- 12:4c5be5aadf51
- Parent:
- 11:8d8c3e003153
- Child:
- 13:d4ed04e04e9b
--- a/main.cpp Tue Nov 06 07:37:23 2018 +0000
+++ b/main.cpp Tue Nov 06 07:46:45 2018 +0000
@@ -39,9 +39,9 @@
/// Read data from address 1 to 4, and store in data array
memory.read(0x000A,data,4);
- printf("read[1]:0x000A = %X\n",data[0]);
- printf("read[2]:0x000B = %X\n",data[1]);
- printf("read[3]:0x000C = %X\n",data[2]);
- printf("read[4]:0x000D = %X\n",data[3]);
+ printf("read[1]:0x000A = %X\n",(uint8_t)data[0]);
+ printf("read[2]:0x000B = %X\n",(uint8_t)data[1]);
+ printf("read[3]:0x000C = %X\n",(uint8_t)data[2]);
+ printf("read[4]:0x000D = %X\n",(uint8_t)data[3]);
}
\ No newline at end of file