Skip to content

Commit

Permalink
default to fan syncing but support disabling fan syncing with SYNC_FA…
Browse files Browse the repository at this point in the history
…NS=0 build flag
  • Loading branch information
curiousercreative committed Apr 30, 2021
1 parent 85b031d commit 71a0a8c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/board/system76/common/fan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions src/board/system76/galp5/board.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 71a0a8c

Please sign in to comment.