From d4affd7ebb3971f8c7e186734f6cc09b4de1ce42 Mon Sep 17 00:00:00 2001 From: Skot Date: Wed, 6 Sep 2023 15:38:05 -0400 Subject: [PATCH] deal with the reversed fan speed polarity on the ultra --- main/system.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/main/system.c b/main/system.c index daa8adf9..8668d092 100644 --- a/main/system.c +++ b/main/system.c @@ -22,6 +22,7 @@ static const char *TAG = "SystemModule"; #define ASIC_VOLTAGE CONFIG_ASIC_VOLTAGE +#define ASIC_MODEL CONFIG_ASIC_MODEL static void _suffix_string(uint64_t, char *, size_t, int); @@ -70,7 +71,14 @@ static void _init_system(SystemModule *module) // Fan Tests EMC2101_init(); - EMC2101_set_fan_speed(0.75); + if (strcmp(ASIC_MODEL, "BM1366") == 0) + { + EMC2101_set_fan_speed(0); + } + else + { + EMC2101_set_fan_speed(1); + } vTaskDelay(500 / portTICK_PERIOD_MS); // oled