Skip to content

Commit

Permalink
Fix mute switch setup
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed Mar 29, 2024
1 parent a765e58 commit c0c1197
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion neon_phal_plugin_switches/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ def setup_gpio(self, pull_up: bool = True):
hold_time=0.5).when_activated = self.on_vol_down

mute_active = True if bool(self._muted) == pull_up else False
self.mute_switch = Button(self.mute_pin, active_state=mute_active)
self.mute_switch = Button(self.mute_pin, pull_up=None,
active_state=mute_active)

self.mute_switch.when_deactivated = self.on_unmute
self.mute_switch.when_activated = self.on_mute
Expand Down

0 comments on commit c0c1197

Please sign in to comment.