Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 1163 → Rev 1208

/branches/V0.71i_DSL_X_LED/led.c
10,17 → 10,23
extern char MotorenEin;
 
void setJ16(char enabled) {
if ((enabled && lightsOn) ^ LED_NEGATE_J16)
if ((enabled && lightsOn) ^ LED_NEGATE_J16) {
J16_ON;
else
DebugOut.Analog[24] = 100;
} else {
J16_OFF;
DebugOut.Analog[24] = 0;
}
}
 
void setJ17(char enabled) {
if ((enabled && lightsOn) ^ LED_NEGATE_J17)
if ((enabled && lightsOn) ^ LED_NEGATE_J17) {
J17_ON;
else
DebugOut.Analog[25] = 100;
} else {
J17_OFF;
DebugOut.Analog[25] = 0;
}
}
 
// initializes the LED control outputs J16, J17