Skip to content

Commit

Permalink
deal with the reversed fan speed polarity on the ultra
Browse files Browse the repository at this point in the history
  • Loading branch information
skot committed Sep 6, 2023
1 parent 032fe24 commit d4affd7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion main/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d4affd7

Please sign in to comment.