From 30c9a616bbe58e1010a5613a5013286e70210a77 Mon Sep 17 00:00:00 2001 From: Hank Liou Date: Fri, 17 May 2019 15:55:57 +0800 Subject: [PATCH 1/2] Fix fan duty error. --- sensors/builder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sensors/builder.cpp b/sensors/builder.cpp index 69cd38ea..5b015b75 100644 --- a/sensors/builder.cpp +++ b/sensors/builder.cpp @@ -71,7 +71,7 @@ SensorManager passiveListeningBus, info->type, name, &helper, info); if (ri == nullptr) { - system("pwm_tacho.py -a -d 255"); + system("pwm_tacho.py -a -d 100"); throw SensorBuildException( "Failed to create dbus passive sensor: " + name + " of type: " + info->type); From f7383a0fe539c600785dba35ea7eabd10cd493d8 Mon Sep 17 00:00:00 2001 From: Hank Liou Date: Tue, 21 May 2019 10:16:44 +0800 Subject: [PATCH 2/2] Remove sensor nonexistence protection. --- sensors/builder.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/sensors/builder.cpp b/sensors/builder.cpp index 5b015b75..1a74adb0 100644 --- a/sensors/builder.cpp +++ b/sensors/builder.cpp @@ -71,7 +71,6 @@ SensorManager passiveListeningBus, info->type, name, &helper, info); if (ri == nullptr) { - system("pwm_tacho.py -a -d 100"); throw SensorBuildException( "Failed to create dbus passive sensor: " + name + " of type: " + info->type);