mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-04-11 21:39:16 +02:00
deal with the reversed fan speed polarity on the ultra
This commit is contained in:
parent
032fe24f2a
commit
d4affd7ebb
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user