Skip to content

Commit 10056ba

Browse files
committed
NV-CONTROL: Returning None if Coolbit 4 is not set
Previously it was not possible to know if the manual control was simply disabled or if the coolbit 4 was not set at all. Now the function returns None if the coolbit is not set at all or a boolean if is set.
1 parent 64fc9a5 commit 10056ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Xlib/ext/nvcontrol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def get_mem_transfer_rate_offset_range(self, target):
280280

281281

282282
def get_cooler_manual_control_enabled(self, target):
283-
return query_int_attribute(self, target, 0, NV_CTRL_GPU_COOLER_MANUAL_CONTROL) == 1
283+
return query_int_attribute(self, target, 0, NV_CTRL_GPU_COOLER_MANUAL_CONTROL)
284284

285285

286286
def set_cooler_manual_control_enabled(self, target, enabled):

0 commit comments

Comments
 (0)