Update platform drivers

Revision:
9:9e247b9c9abf
Parent:
8:70fc373a5f46
diff -r 70fc373a5f46 -r 9e247b9c9abf src/i2c.cpp
--- a/src/i2c.cpp	Wed Feb 26 06:09:13 2020 +0000
+++ b/src/i2c.cpp	Mon Jun 15 13:03:55 2020 +0000
@@ -52,7 +52,10 @@
 			return FAILURE;
 		}
 
-		new_desc->slave_address = param->slave_address;
+		// Address passed in parameter shifted left by 1 to form
+		// 7-bit i2c slave address (7 MSBs) and the LSB acts as
+		// r/w bit during i2c read/write operations
+		new_desc->slave_address = ((param->slave_address) << 1);
 
 		// Configure and instantiate I2C protocol
 		i2c = new I2C(