mirror of
https://github.com/CTCaer/hekate.git
synced 2024-11-26 19:52:11 +00:00
nyx: explicitly state if fuses are overburnt
This commit is contained in:
parent
432d4a4ffa
commit
8eda2d805f
1 changed files with 11 additions and 2 deletions
|
@ -689,8 +689,14 @@ static lv_res_t _create_window_fuses_info_status(lv_obj_t *btn)
|
||||||
u8 burnt_fuses_7 = bit_count(fuse_read_odm(7));
|
u8 burnt_fuses_7 = bit_count(fuse_read_odm(7));
|
||||||
u8 burnt_fuses_6 = bit_count(fuse_read_odm(6));
|
u8 burnt_fuses_6 = bit_count(fuse_read_odm(6));
|
||||||
|
|
||||||
switch (burnt_fuses_7)
|
// Check if overburnt.
|
||||||
|
u8 burnt_fuses_hos = (fuse_read_odm(7) & ~bit_count_mask(burnt_fuses_7)) ? 255 : burnt_fuses_7;
|
||||||
|
|
||||||
|
switch (burnt_fuses_hos)
|
||||||
{
|
{
|
||||||
|
case 0:
|
||||||
|
strcpy(fuses_hos_version, "#96FF00 Golden sample#");
|
||||||
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
strcpy(fuses_hos_version, "1.0.0");
|
strcpy(fuses_hos_version, "1.0.0");
|
||||||
break;
|
break;
|
||||||
|
@ -736,6 +742,9 @@ static lv_res_t _create_window_fuses_info_status(lv_obj_t *btn)
|
||||||
case 15:
|
case 15:
|
||||||
strcpy(fuses_hos_version, "12.0.2+");
|
strcpy(fuses_hos_version, "12.0.2+");
|
||||||
break;
|
break;
|
||||||
|
case 255:
|
||||||
|
strcpy(fuses_hos_version, "#FFD000 Overburnt#");
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
strcpy(fuses_hos_version, "#FF8000 Unknown#");
|
strcpy(fuses_hos_version, "#FF8000 Unknown#");
|
||||||
break;
|
break;
|
||||||
|
@ -936,7 +945,7 @@ static lv_res_t _create_window_fuses_info_status(lv_obj_t *btn)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
s_printf(txt_buf + strlen(txt_buf), "\n#FF8000 ID:# [%02X] %02X [%02X]",
|
s_printf(txt_buf + strlen(txt_buf), "\n#FF8000 ID:# #96FF00 %02X# %02X #96FF00 %02X#",
|
||||||
nyx_str->info.disp_id & 0xFF, (nyx_str->info.disp_id >> 8) & 0xFF, (nyx_str->info.disp_id >> 16) & 0xFF);
|
nyx_str->info.disp_id & 0xFF, (nyx_str->info.disp_id >> 8) & 0xFF, (nyx_str->info.disp_id >> 16) & 0xFF);
|
||||||
|
|
||||||
touch_fw_info_t touch_fw;
|
touch_fw_info_t touch_fw;
|
||||||
|
|
Loading…
Reference in a new issue