mirror of
https://github.com/CTCaer/hekate
synced 2024-12-22 11:21:23 +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:
parent
a7f0701cbf
commit
339ce2d861
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue