Fix bugs introduced into Planck EZ code

pull/6512/head
Drashna Jael're 6 years ago committed by Florian Didron
parent 927969d6cb
commit 5a30142914

@ -228,13 +228,13 @@ uint32_t layer_state_set_kb(uint32_t state) {
state = layer_state_set_user(state); state = layer_state_set_user(state);
uint8_t layer = biton32(state); uint8_t layer = biton32(state);
switch (layer) { switch (layer) {
case 3: case 1:
planck_ez_left_led_on(); planck_ez_left_led_on();
break; break;
case 4: case 2:
planck_ez_right_led_on(); planck_ez_right_led_on();
break; break;
case 6: case 3:
planck_ez_right_led_on(); planck_ez_right_led_on();
planck_ez_left_led_on(); planck_ez_left_led_on();
break; break;

@ -48,7 +48,7 @@
* @details Frequency of the system timer that drives the system ticks. This * @details Frequency of the system timer that drives the system ticks. This
* setting also defines the system tick time unit. * setting also defines the system tick time unit.
*/ */
#define CH_CFG_ST_FREQUENCY 1000 #define CH_CFG_ST_FREQUENCY 100000
/** /**
* @brief Time delta constant for the tick-less mode. * @brief Time delta constant for the tick-less mode.

Loading…
Cancel
Save