Rev 1163 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1163 | Rev 1208 | ||
---|---|---|---|
Line 8... | Line 8... | ||
8 | unsigned char lightsEnabled = 0, lightsOn = 0; |
8 | unsigned char lightsEnabled = 0, lightsOn = 0; |
Line 9... | Line 9... | ||
9 | 9 | ||
Line 10... | Line 10... | ||
10 | extern char MotorenEin; |
10 | extern char MotorenEin; |
11 | 11 | ||
12 | void setJ16(char enabled) { |
12 | void setJ16(char enabled) { |
- | 13 | if ((enabled && lightsOn) ^ LED_NEGATE_J16) { |
|
13 | if ((enabled && lightsOn) ^ LED_NEGATE_J16) |
14 | J16_ON; |
14 | J16_ON; |
15 | DebugOut.Analog[24] = 100; |
- | 16 | } else { |
|
- | 17 | J16_OFF; |
|
15 | else |
18 | DebugOut.Analog[24] = 0; |
Line 16... | Line 19... | ||
16 | J16_OFF; |
19 | } |
17 | } |
20 | } |
18 | 21 | ||
- | 22 | void setJ17(char enabled) { |
|
19 | void setJ17(char enabled) { |
23 | if ((enabled && lightsOn) ^ LED_NEGATE_J17) { |
20 | if ((enabled && lightsOn) ^ LED_NEGATE_J17) |
24 | J17_ON; |
- | 25 | DebugOut.Analog[25] = 100; |
|
- | 26 | } else { |
|
21 | J17_ON; |
27 | J17_OFF; |
Line 22... | Line 28... | ||
22 | else |
28 | DebugOut.Analog[25] = 0; |
Line 23... | Line 29... | ||
23 | J17_OFF; |
29 | } |