Skip to content

Commit

Permalink
last changes
Browse files Browse the repository at this point in the history
  • Loading branch information
supertick committed Jun 19, 2016
1 parent 0788a46 commit 99834e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MRLComm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1052,10 +1052,10 @@ void i2cRead(){
Serial.write(1 + ioCmd[3]);
// mrlcomm function
Serial.write(PUBLISH_SENSOR_DATA);
Serial.write(0)//get the DEVICE_INDEX
Serial.write(0);//get the DEVICE_INDEX
// I2C device are only sending back data, some more identifier should be added
//return the request bytes, incomplete message will be padded with 0xFF bytes
Serial.write(answer)
Serial.write(answer);
for (int i = 1; i<answer; i++){
Serial.write(Wire.read());
}
Expand Down

0 comments on commit 99834e7

Please sign in to comment.