![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
slave integrated
Fork of BAE_FRDMTESIN2 by
Diff: fault.cpp
- Revision:
- 3:02b45de29c0f
- Parent:
- 2:80b8a2e999f7
- Child:
- 4:8f6c24eca109
--- a/fault.cpp Tue Dec 02 10:43:24 2014 +0000 +++ b/fault.cpp Wed Dec 03 06:25:50 2014 +0000 @@ -1,4 +1,5 @@ #include "fault.h" +#include "HK.h" DigitalIn fault1(FAULT1); @@ -22,7 +23,7 @@ BusOut clear(FAULT_CLEAR1,FAULT_CLEAR2,FAULT_CLEAR3,FAULT_CLEAR4,FAULT_CLEAR5,FAULT_CLEAR6,FAULT_CLEAR7,FAULT_CLEAR8); -int clearout = clear; +extern SensorData Sensor; void FAULTS() { @@ -36,7 +37,7 @@ clear6 = !fault6; clear7 = !fault7; clear8 = !fault8; - printf(" %d \n",clearout); + Sensor.fault = clear; + printf(" %d \n",Sensor.fault); - } \ No newline at end of file