Maxim Integrated / Mbed 2 deprecated DeepCover Embedded Security in IoT

Dependencies:   MaximInterface mbed

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())