We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b67f291 + 717459d commit f978768Copy full SHA for f978768
1 file changed
oresat_c3/__main__.py
@@ -114,12 +114,13 @@ def watchdog():
114
115
updating = app.od["updater"]["status"].value == UpdaterState.UPDATING
116
edl = app.od["status"].value == C3State.EDL
117
+ override = app.od["performance_override"].value
118
- if not performance and (updating or edl):
119
+ if not performance and (updating or edl or override):
120
logger.info("setting cpufreq governor to performance mode")
121
set_cpufreq_gov("performance")
122
performance = True
- elif performance and not updating and not edl:
123
+ elif performance and not (updating or edl or override):
124
logger.info("setting cpufreq governor to powersave mode")
125
set_cpufreq_gov("powersave")
126
performance = False
0 commit comments