Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisib committed Dec 4, 2024
1 parent 822dfe6 commit 0169bcf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions software/firmware/experimental/settings_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,9 @@ def sample_ain(self, timer):
@param timer The timer that fired this callback
"""
index = int(self.analog_in.percent() * (len(self.config_point.choices) - self.NUM_AUTOINPUT_CHOICES))
index = int(
self.analog_in.percent() * (len(self.config_point.choices) - self.NUM_AUTOINPUT_CHOICES)
)
item = self.config_point.choices[index]
if item != self._value:
old_value = self._value
Expand All @@ -546,7 +548,9 @@ def sample_knob(self, timer):
@param timer The timer that fired this callback
"""
index = int(self.knob_in.percent() * (len(self.config_point.choices) - self.NUM_AUTOINPUT_CHOICES))
index = int(
self.knob_in.percent() * (len(self.config_point.choices) - self.NUM_AUTOINPUT_CHOICES)
)
item = self.config_point.choices[index]
if item != self._value:
old_value = self._value
Expand Down

0 comments on commit 0169bcf

Please sign in to comment.