Skip to content

Commit

Permalink
factory: Add script to reset knob range settings
Browse files Browse the repository at this point in the history
  • Loading branch information
theacodes committed Feb 21, 2021
1 parent bedf757 commit 0984588
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions factory/reset_knob_ranges.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from libgemini import gem_settings, gemini

gem = gemini.Gemini()

default_settings = gem_settings.GemSettings()

settings = gem.read_settings()

settings.castor_knob_min = default_settings.castor_knob_min
settings.castor_knob_max = default_settings.castor_knob_max
settings.pollux_knob_min = default_settings.pollux_knob_min
settings.pollux_knob_max = default_settings.pollux_knob_max

gem.save_settings(settings)

print(gem.read_settings())

0 comments on commit 0984588

Please sign in to comment.