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: MaximInterface mbed
Diff: main.cpp
- Revision:
- 4:71d578d3af22
- Parent:
- 1:e1c7c1c636af
- Child:
- 5:63232ef22abe
diff -r ac723be395d9 -r 71d578d3af22 main.cpp
--- a/main.cpp Tue Apr 19 21:20:52 2016 +0000
+++ b/main.cpp Wed Apr 20 09:49:25 2016 -0500
@@ -462,10 +462,10 @@
RomId romId;
// Set register pointer
- if (i2c.write(I2C_address, (const char *)&ROM_address, 1) != 0)
+ if (i2c.write(I2C_address, reinterpret_cast<const char *>(&ROM_address), 1) != 0)
return false;
// Read ROM ID
- if (i2c.read(I2C_address, (char *)(&(static_cast<RomId::ByteBuffer &>(romId))), RomId::byteLen) != 0)
+ if (i2c.read(I2C_address, reinterpret_cast<char *>(&(static_cast<RomId::ByteBuffer &>(romId))), RomId::byteLen) != 0)
return false;
// Check if CRC valid
if (!romId.crc8Valid())
MAXREFDES143#: DeepCover Embedded Security in IoT Authenticated Sensing & Notification