![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
i2c slave integrated
Fork of BAE_FRDM_INTEGRATION by
Diff: slave.cpp
- Revision:
- 3:02b45de29c0f
- Parent:
- 1:b4bb78a9b92e
- Child:
- 5:255b43e8e21a
diff -r 80b8a2e999f7 -r 02b45de29c0f slave.cpp --- 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;