default to fan syncing but support disabling fan syncing with SYNC_FANS=0 build flag
This commit is contained in:
parent
f0c42f5839
commit
606ba01b48
@ -9,6 +9,10 @@ bool fan_max = false;
|
||||
#define max_speed PWM_DUTY(100)
|
||||
#define min_speed PWM_DUTY(0)
|
||||
|
||||
#ifndef SYNC_FANS
|
||||
#define SYNC_FANS 1
|
||||
#endif
|
||||
|
||||
void fan_reset(void) {
|
||||
// Do not manually set fans to maximum speed
|
||||
fan_max = false;
|
||||
@ -52,7 +56,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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user