Skip to content

Commit

Permalink
Merge branch 'gamma_temp_fix' of https://github.com/skot/ESP-Miner in…
Browse files Browse the repository at this point in the history
…to gamma_temp_fix
  • Loading branch information
Benjamin Wilson committed Nov 14, 2024
2 parents d8b0b41 + 4d3d598 commit 265c2ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main/EMC2101.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

#include "i2c_bitaxe.h"

#define EMC2101_GAMMA_DEF_IDEALITY 0x37
#define EMC2101_GAMMA_DEF_BETA 0x07

#define EMC2101_I2CADDR_DEFAULT 0x4C ///< EMC2101 default i2c address
#define EMC2101_CHIP_ID 0x16 ///< EMC2101 default device id from part id
#define EMC2101_ALT_CHIP_ID 0x28 ///< EMC2101 alternate device id from part id
Expand Down
3 changes: 3 additions & 0 deletions main/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ void SYSTEM_init_peripherals(GlobalState * GLOBAL_STATE) {
case DEVICE_SUPRA:
case DEVICE_GAMMA:
EMC2101_init(nvs_config_get_u16(NVS_CONFIG_INVERT_FAN_POLARITY, 1));

EMC2101_configure_ideality(EMC2101_GAMMA_DEF_IDEALITY);
EMC2101_configure_beta_compensation(EMC2101_GAMMA_DEF_BETA);
break;
default:
}
Expand Down

0 comments on commit 265c2ca

Please sign in to comment.