Skip to content

Commit

Permalink
fix spurious LED in battery level, assign battery level to long press B
Browse files Browse the repository at this point in the history
  • Loading branch information
doegox committed Oct 10, 2023
1 parent c4aef7e commit ffb6e00
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file.
This project uses the changelog in accordance with [keepchangelog](http://keepachangelog.com/). Please use this to write notable changes, which is not the same as git commit log...

## [unreleased][unreleased]
- Fixed spurious LED in battery level, assigned battery level to long press B (@doegox)
- Changed `hw slot list` to display LF ID & HF anticol data, and names in the --short version too (@doegox)
- Added colors to CLI help (@doegox)
- Changed massively CLI, cf https://github.com/RfidResearchGroup/ChameleonUltra/issues/164#issue-1930580576 (@doegox)
Expand Down
1 change: 1 addition & 0 deletions firmware/application/src/app_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,7 @@ static void cycle_slot(bool dec) {
}

static void show_battery(void) {
rgb_marquee_stop();
uint32_t *led_pins = hw_get_led_array();
// if still in the first 4s after boot, blink red while waiting for battery info
while (percentage_batt_lvl == 0) {
Expand Down
2 changes: 1 addition & 1 deletion firmware/application/src/settings.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void settings_init_button_press_config(void) {
// add on version3
void settings_init_button_long_press_config(void) {
config.button_a_long_press = SettingsButtonCloneIcUid;
config.button_b_long_press = SettingsButtonCloneIcUid;
config.button_b_long_press = SettingsButtonShowBattery;
}

// add on version4
Expand Down

0 comments on commit ffb6e00

Please sign in to comment.