1
0
Fork 0
mirror of https://github.com/CTCaer/hekate.git synced 2024-11-26 11:42:09 +00:00

minerva: change some types and fix temp check

Temperature error check for over temp compensation was wrong.

It's still unused though, so it didn't matter.
This commit is contained in:
CTCaer 2021-10-15 16:48:51 +03:00
parent a7f0701cbf
commit 339ce2d861
2 changed files with 3 additions and 3 deletions

View file

@ -53,8 +53,8 @@
typedef struct typedef struct
{ {
s32 rate_to; u32 rate_to;
s32 rate_from; u32 rate_from;
emc_table_t *mtc_table; emc_table_t *mtc_table;
u32 table_entries; u32 table_entries;
emc_table_t *current_emc_table; emc_table_t *current_emc_table;

View file

@ -3604,7 +3604,7 @@ void _minerva_do_over_temp_compensation(mtc_config_t *mtc_cfg)
u32 dram_temp = _get_dram_temperature(); u32 dram_temp = _get_dram_temperature();
if (mtc_cfg->prev_temp == dram_temp || dram_temp < 0) if (mtc_cfg->prev_temp == dram_temp || dram_temp == (u32)-1)
return; return;
u32 refr = mtc_cfg->current_emc_table->burst_regs.emc_refresh_idx; u32 refr = mtc_cfg->current_emc_table->burst_regs.emc_refresh_idx;