works fine on STM

Dependencies:   mbed

Revision:
3:5811c736c8ef
Parent:
2:09b8571eb8ce
--- a/main.cpp	Mon Feb 13 12:01:31 2017 +0000
+++ b/main.cpp	Wed Feb 15 11:35:37 2017 +0000
@@ -32,7 +32,7 @@
     data_write[0] = MLX90614_TOBJ;      //TOBJ address to buff
     i2c.write( MLX90614_ADDR<<1 | 0x00, data_write, 1, 1);  //command to RAM access SR activated
     i2c.read ( MLX90614_ADDR<<1 | 0x01, data_read , 3, 0);  //read callback
-    Buff |=  data_read[1] << 8;         // merging
+    Buff  =  data_read[1] << 8;         // merging
     Buff |=  data_read[0];
     led = 0;
 }
\ No newline at end of file