mirror of
https://github.com/erpalma/throttled.git
synced 2025-12-06 07:01:59 +01:00
don't apply undervolt if omitted from config (fix #241)
This commit is contained in:
parent
fa66ea1033
commit
0b219890d9
|
|
@ -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…
Reference in a new issue