From 71a0a8c098cadf2e1a405c9583f0190c7dd4bec0 Mon Sep 17 00:00:00 2001 From: Winston Hoy Date: Fri, 30 Apr 2021 11:24:19 -0400 Subject: [PATCH] default to fan syncing but support disabling fan syncing with SYNC_FANS=0 build flag --- src/board/system76/common/fan.c | 2 +- src/board/system76/galp5/board.mk | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/board/system76/common/fan.c b/src/board/system76/common/fan.c index ca8d9e7ba..450884a4c 100644 --- a/src/board/system76/common/fan.c +++ b/src/board/system76/common/fan.c @@ -52,7 +52,7 @@ uint8_t fan_duty(const struct Fan * fan, int16_t temp) __reentrant { } void fan_duty_set(uint8_t peci_fan_duty, uint8_t dgpu_fan_duty) __reentrant { - #ifdef SYNC_FANS + #if SYNC_FANS != 0 peci_fan_duty = peci_fan_duty > dgpu_fan_duty ? peci_fan_duty : dgpu_fan_duty; dgpu_fan_duty = peci_fan_duty > dgpu_fan_duty ? peci_fan_duty : dgpu_fan_duty; #endif diff --git a/src/board/system76/galp5/board.mk b/src/board/system76/galp5/board.mk index d66b6206a..66d6ed323 100644 --- a/src/board/system76/galp5/board.mk +++ b/src/board/system76/galp5/board.mk @@ -40,9 +40,6 @@ CFLAGS+=\ -DPOWER_LIMIT_AC=65 \ -DPOWER_LIMIT_DC=28 -# sync GPU fan speed to CPU fan speed (great for galp5 w/o dGPU) -CFLAGS+=-DSYNC_FANS=1 - # Custom fan curve CFLAGS+=-DBOARD_HEATUP=5 CFLAGS+=-DBOARD_COOLDOWN=20