diff --git a/src/board/system76/darp5/main.c b/src/board/system76/darp5/main.c index 91f94eb..d4b8a0b 100644 --- a/src/board/system76/darp5/main.c +++ b/src/board/system76/darp5/main.c @@ -106,8 +106,8 @@ void main(void) { lid_event(); // Checks for keyboard/mouse packets from host kbc_event(&KBC); - // Only run the following once out of every 256 loops - if (main_cycle == 0) { + // Only run the following once a second + if (time_get() % 1000 == 0) { // Updates fan status and temps peci_event(); // Updates battery status diff --git a/src/board/system76/darp5/peci.c b/src/board/system76/darp5/peci.c index 9ab71e8..8dbc443 100644 --- a/src/board/system76/darp5/peci.c +++ b/src/board/system76/darp5/peci.c @@ -25,14 +25,10 @@ struct FanPoint { // Fan curve with temperature in degrees C, duty cycle in percent struct FanPoint __code FAN_POINTS[] = { - FAN_POINT(65, 30), - FAN_POINT(70, 35), - FAN_POINT(75, 40), - FAN_POINT(78, 45), - FAN_POINT(80, 50), - FAN_POINT(81, 55), - FAN_POINT(82, 65), - FAN_POINT(83, 75), + FAN_POINT(65, 40), + FAN_POINT(70, 45), + FAN_POINT(75, 55), + FAN_POINT(80, 75), FAN_POINT(84, 100), }; diff --git a/src/board/system76/galp3-c/main.c b/src/board/system76/galp3-c/main.c index b3cab6b..ab3aaf7 100644 --- a/src/board/system76/galp3-c/main.c +++ b/src/board/system76/galp3-c/main.c @@ -108,8 +108,8 @@ void main(void) { lid_event(); // Checks for keyboard/mouse packets from host kbc_event(&KBC); - // Only run the following once out of every 256 loops - if (main_cycle == 0) { + // Only run the following once a second + if (time_get() % 1000 == 0) { // Updates fan status and temps peci_event(); // Updates battery status diff --git a/src/board/system76/galp3-c/peci.c b/src/board/system76/galp3-c/peci.c index 9ab71e8..8dbc443 100644 --- a/src/board/system76/galp3-c/peci.c +++ b/src/board/system76/galp3-c/peci.c @@ -25,14 +25,10 @@ struct FanPoint { // Fan curve with temperature in degrees C, duty cycle in percent struct FanPoint __code FAN_POINTS[] = { - FAN_POINT(65, 30), - FAN_POINT(70, 35), - FAN_POINT(75, 40), - FAN_POINT(78, 45), - FAN_POINT(80, 50), - FAN_POINT(81, 55), - FAN_POINT(82, 65), - FAN_POINT(83, 75), + FAN_POINT(65, 40), + FAN_POINT(70, 45), + FAN_POINT(75, 55), + FAN_POINT(80, 75), FAN_POINT(84, 100), }; diff --git a/src/board/system76/lemp9/main.c b/src/board/system76/lemp9/main.c index 702c5cf..5faa370 100644 --- a/src/board/system76/lemp9/main.c +++ b/src/board/system76/lemp9/main.c @@ -110,8 +110,8 @@ void main(void) { lid_event(); // Checks for keyboard/mouse packets from host kbc_event(&KBC); - // Only run the following once out of every 256 loops - if (main_cycle == 0) { + // Only run the following once a second + if (time_get() % 1000 == 0) { // Updates fan status and temps peci_event(); // Updates battery status diff --git a/src/board/system76/lemp9/peci.c b/src/board/system76/lemp9/peci.c index 9ab71e8..8dbc443 100644 --- a/src/board/system76/lemp9/peci.c +++ b/src/board/system76/lemp9/peci.c @@ -25,14 +25,10 @@ struct FanPoint { // Fan curve with temperature in degrees C, duty cycle in percent struct FanPoint __code FAN_POINTS[] = { - FAN_POINT(65, 30), - FAN_POINT(70, 35), - FAN_POINT(75, 40), - FAN_POINT(78, 45), - FAN_POINT(80, 50), - FAN_POINT(81, 55), - FAN_POINT(82, 65), - FAN_POINT(83, 75), + FAN_POINT(65, 40), + FAN_POINT(70, 45), + FAN_POINT(75, 55), + FAN_POINT(80, 75), FAN_POINT(84, 100), };