config: utilize devmode variable

This holds the NX hw state.
This commit is contained in:
CTCaer
2025-08-08 15:07:48 +03:00
parent 2ea496d9d1
commit af71f46b12
7 changed files with 8 additions and 4 deletions

View File

@@ -37,7 +37,7 @@ void print_fuseinfo()
gfx_con_setpos(0, 0);
gfx_printf("\nSKU: %X - ", FUSE(FUSE_SKU_INFO));
switch (fuse_read_hw_state())
switch (h_cfg.devmode)
{
case FUSE_NX_HW_STATE_PROD:
gfx_printf("Retail\n");
@@ -238,7 +238,7 @@ void print_sdcard_info()
gfx_printf("%kFound %s volume:%k\n Free: %d MiB\n Cluster: %d KiB\n",
TXT_CLR_CYAN_L, sd_fs.fs_type == FS_EXFAT ? "exFAT" : "FAT32", TXT_CLR_DEFAULT,
sd_fs.free_clst * sd_fs.csize >> SECTORS_TO_MIB_COEFF, (sd_fs.csize > 1) ? (sd_fs.csize >> 1) : 512);
f_mount(NULL, "", 1);
f_unmount("");
}
else
{