Rev 2296 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2296 | Rev 2309 | ||
---|---|---|---|
Line 111... | Line 111... | ||
111 | else |
111 | else |
112 | { |
112 | { |
113 | pieper_ein = 0; |
113 | pieper_ein = 0; |
114 | BeepMuster = 0xffff; |
114 | BeepMuster = 0xffff; |
115 | } |
115 | } |
- | 116 | #if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__)) |
|
- | 117 | if(pieper_ein) PORTC |= (1<<7); // Speaker an PORTC.7 |
|
- | 118 | else PORTC &= ~(1<<7); |
|
- | 119 | #else |
|
116 | if(pieper_ein) |
120 | if(pieper_ein) |
117 | { |
121 | { |
118 | if(PlatinenVersion == 10) PORTD |= (1<<2); // Speaker an PORTD.2 |
122 | if(PlatinenVersion == 10) PORTD |= (1<<2); // Speaker an PORTD.2 |
119 | else PORTC |= (1<<7); // Speaker an PORTC.7 |
123 | else PORTC |= (1<<7); // Speaker an PORTC.7 |
120 | } |
124 | } |
121 | else |
125 | else |
122 | { |
126 | { |
123 | if(PlatinenVersion == 10) PORTD &= ~(1<<2); |
127 | if(PlatinenVersion == 10) PORTD &= ~(1<<2); |
124 | else PORTC &= ~(1<<7); |
128 | else PORTC &= ~(1<<7); |
125 | } |
129 | } |
- | 130 | #endif |
|
126 | } |
131 | } |
127 | if(compass_active && !NaviDataOkay && Parameter_GlobalConfig & CFG_KOMPASS_AKTIV) |
132 | if(compass_active && !NaviDataOkay && Parameter_GlobalConfig & CFG_KOMPASS_AKTIV) |
128 | { |
133 | { |
129 | if(PINC & 0x10) |
134 | if(PINC & 0x10) |
130 | { |
135 | { |