Rev 2183 | Rev 2370 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2183 | Rev 2348 | ||
---|---|---|---|
Line 23... | Line 23... | ||
23 | static char delay = 0; |
23 | static char delay = 0; |
24 | static unsigned char J16Bitmask = 0; |
24 | static unsigned char J16Bitmask = 0; |
25 | static unsigned char J17Bitmask = 0; |
25 | static unsigned char J17Bitmask = 0; |
26 | static unsigned char J16Warn = 0, J17Warn = 0; |
26 | static unsigned char J16Warn = 0, J17Warn = 0; |
27 | static unsigned char from_nc = 0; |
27 | static unsigned char from_nc = 0; |
- | 28 | ||
- | 29 | if(FromNC_WP_EventChannel != -127) { from_nc = (unsigned char) FromNC_WP_EventChannel + 127; /*beeptime = 300;*/}; |
|
28 | if(!delay--) // 20ms Intervall |
30 | if(!delay--) // 20ms Intervall |
29 | { |
31 | { |
30 | delay = 9; |
32 | delay = 9; |
31 | if(FromNC_WP_EventChannel != -127) from_nc = (unsigned char) FromNC_WP_EventChannel + 127; |
- | |
32 | if(FC_StatusFlags & (FC_STATUS_LOWBAT | FC_STATUS_EMERGENCY_LANDING) || (VersionInfo.HardwareError[1] & FC_ERROR1_I2C)) |
33 | if(FC_StatusFlags & (FC_STATUS_LOWBAT | FC_STATUS_EMERGENCY_LANDING) || (VersionInfo.HardwareError[1] & FC_ERROR1_I2C)) |
33 | { |
34 | { |
34 | if(EE_Parameter.WARN_J16_Bitmask) |
35 | if(EE_Parameter.WARN_J16_Bitmask) |
35 | { |
36 | { |
36 | if(!J16Warn) J16Blinkcount = 4; |
37 | if(!J16Warn) J16Blinkcount = 4; |
Line 118... | Line 119... | ||
118 | J17Blinkcount = 10-1; |
119 | J17Blinkcount = 10-1; |
119 | if(J17Mask == 1) J17Mask = 128; else J17Mask /= 2; |
120 | if(J17Mask == 1) J17Mask = 128; else J17Mask /= 2; |
120 | if(J17Mask & EE_Parameter.WARN_J17_Bitmask) J17_ON; else J17_OFF; |
121 | if(J17Mask & EE_Parameter.WARN_J17_Bitmask) J17_ON; else J17_OFF; |
121 | } |
122 | } |
Line 122... | Line 123... | ||
122 | 123 | ||
123 | if(PORTC & (1<<PORTC2)) FC_StatusFlags2 |= FC_STATUS2_OUT1_ACTIVE; else FC_StatusFlags2 &= ~FC_STATUS2_OUT1_ACTIVE; // Out1 (J16) |
124 | if(PORTC & (1<<PORTC2)) FC_StatusFlags2 |= FC_STATUS2_OUT1_ACTIVE; //else FC_StatusFlags2 &= ~FC_STATUS2_OUT1_ACTIVE; // Out1 (J16) -> wird in der SPI zurück gesetzt |
124 | if(PORTC & (1<<PORTC3)) FC_StatusFlags2 |= FC_STATUS2_OUT2_ACTIVE; else FC_StatusFlags2 &= ~FC_STATUS2_OUT2_ACTIVE; // Out2 (J17) |
125 | if(PORTC & (1<<PORTC3)) FC_StatusFlags2 |= FC_STATUS2_OUT2_ACTIVE; else FC_StatusFlags2 &= ~FC_STATUS2_OUT2_ACTIVE; // Out2 (J17) |
125 | } |
126 | } |