mirror of
https://github.com/erpalma/throttled.git
synced 2026-04-21 06:03:56 +00:00
don't apply undervolt if omitted from config (fix #241)
This commit is contained in:
parent
fa66ea1033
commit
0b219890d9
1 changed files with 2 additions and 0 deletions
|
|
@ -405,6 +405,8 @@ def get_undervolt(plane=None, convert=False):
|
|||
|
||||
|
||||
def undervolt(config):
|
||||
if 'UNDERVOLT.{:s}'.format(power['source']) not in config and 'UNDERVOLT' not in config:
|
||||
return
|
||||
for plane in VOLTAGE_PLANES:
|
||||
write_offset_mv = config.getfloat(
|
||||
'UNDERVOLT.{:s}'.format(power['source']), plane, fallback=config.getfloat('UNDERVOLT', plane, fallback=0.0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue