sakthi priya amirtharaj
/
BAE_vr2_1_3
i2c working with old hk
Fork of BAE_vr2_1_1 by
Diff: slave.cpp
- Revision:
- 3:02b45de29c0f
- Parent:
- 1:b4bb78a9b92e
- Child:
- 5:255b43e8e21a
--- a/slave.cpp Tue Dec 02 10:43:24 2014 +0000 +++ b/slave.cpp Wed Dec 03 06:25:50 2014 +0000 @@ -1,3 +1,4 @@ +/* Added fault to hk structure and being sent through I2C. Need to verify the format */ #include "slave.h" #include "HK.h" @@ -74,7 +75,9 @@ write_to_master(Sensor.Temperature[loopvariable2/3]); } loopvariable2++; - }//while(loopvariable2<30) + } + screen.printf("\nfault %c\n",Sensor.fault); + write_to_master(Sensor.fault);//while(loopvariable2<30) printf("\nExited i2c while loop\n"); slave.stop(); loopvariable3=0;