Justin Edwards
/
BLIRQ
MotoTrak
sense.cpp@1:469510ddcd87, 2018-04-30 (annotated)
- Committer:
- justedwa
- Date:
- Mon Apr 30 18:18:19 2018 +0000
- Revision:
- 1:469510ddcd87
- Parent:
- 0:454412fa8fee
Final
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
justedwa | 0:454412fa8fee | 1 | #include "sense.h" |
justedwa | 0:454412fa8fee | 2 | |
justedwa | 0:454412fa8fee | 3 | void SetGear(info* currInfo,DigitalIn Nswitch){ |
justedwa | 0:454412fa8fee | 4 | if(Nswitch == 1) |
justedwa | 0:454412fa8fee | 5 | currInfo->gear = 0; |
justedwa | 0:454412fa8fee | 6 | else if(Nswitch == 0) |
justedwa | 0:454412fa8fee | 7 | currInfo->gear = 1; |
justedwa | 0:454412fa8fee | 8 | } |