Skip to content

Commit

Permalink
boards: Alter the flashing rates
Browse files Browse the repository at this point in the history
Now it is slow for idle, fast for active...
  • Loading branch information
daniel-thompson committed Jan 14, 2020
1 parent 42b116e commit 948de6e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/boards.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,18 +257,18 @@ void led_state(uint32_t state)
case STATE_BLE_CONNECTED:
new_rgb_color = 0x0000ff;
#ifdef LED_SECONDARY_PIN
secondary_cycle_length = 3000;
secondary_cycle_length = 300;
#else
primary_cycle_length = 3000;
primary_cycle_length = 300;
#endif
break;

case STATE_BLE_DISCONNECTED:
new_rgb_color = 0xff00ff;
#ifdef LED_SECONDARY_PIN
secondary_cycle_length = 300;
secondary_cycle_length = 3000;
#else
primary_cycle_length = 300;
primary_cycle_length = 3000;
#endif
break;

Expand Down

0 comments on commit 948de6e

Please sign in to comment.