Subversion Repositories group.electronics

Rev

Rev 92 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 92 Rev 93
Line 185... Line 185...
185
        usbPoll();
185
        usbPoll();
186
 
186
 
187
	uint8_t pressed = getKey();
187
	uint8_t pressed = getKey();
188
 
188
 
189
	if (config.led_method != rbi(PORTB, 5)) {
189
	if (config.led_method != rbi(PORTB, 5)) {
-
 
190
		// Reset the leds when switcing	to buttons
-
 
191
		if (config.led_method == 0) currleds = 1;
190
		config.led_method = rbi(PORTB, 5);
192
		config.led_method = rbi(PORTB, 5);
191
	}
193
	}
192
 
194
 
193
	if (config.led_method == 1)
195
	if (config.led_method == 1)
194
		doButtons(pressed);
196
		doButtons(pressed);