Skip to content

Commit

Permalink
fix(ui): fix audio button handler
Browse files Browse the repository at this point in the history
* Fix mute button event handler in menu and gui for error introduced in #56
  • Loading branch information
finger563 committed Jan 18, 2024
1 parent c008499 commit 299dac8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/gui/include/gui.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class Gui {
void on_rom_focused(lv_obj_t *new_focus);

void on_mute_button_pressed(const std::vector<uint8_t>& data) {
toggle_mute();
set_mute(hal::is_muted());
}

void on_battery(const std::vector<uint8_t>& data);
Expand Down
2 changes: 1 addition & 1 deletion components/menu/include/menu.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class Menu {
VideoSetting get_video_setting();

void on_mute_button_pressed(const std::vector<uint8_t>& data) {
toggle_mute();
set_mute(hal::is_muted());
}

bool update(std::mutex& m, std::condition_variable& cv) {
Expand Down

0 comments on commit 299dac8

Please sign in to comment.