Fixed SplConfigItem_HardwareType detection

This commit is contained in:
KazushiM
2022-10-30 01:46:02 +08:00
parent c808daa51f
commit 4eed01f458
3 changed files with 13 additions and 11 deletions

View File

@@ -24,15 +24,16 @@ MiscGui::MiscGui()
splExit(); splExit();
switch (hardware_type) { switch (hardware_type) {
case 1: //Icosa case 0: // Icosa
case 2: //Copper case 1: // Copper
this->isMariko = false; case 4: // Calcio
isMariko = false;
break; break;
// case 3: // Iowa
// case 4: // Hoag
// case 5: // Aula
default: default:
this->isMariko = true; // case 2: // Hoag
// case 3: // Iowa
// case 5: // Aula
isMariko = true;
break; break;
} }
} }

View File

@@ -85,12 +85,13 @@ void Clocks::Initialize()
splExit(); splExit();
switch (hardware_type) { switch (hardware_type) {
case 1: //Icosa case 0: // Icosa
case 2: //Copper case 1: // Copper
case 4: // Calcio
isMariko = false; isMariko = false;
break; break;
case 2: // Hoag
case 3: // Iowa case 3: // Iowa
case 4: // Hoag
case 5: // Aula case 5: // Aula
isMariko = true; isMariko = true;
break; break;

View File

@@ -17,7 +17,7 @@
#include <cstdarg> #include <cstdarg>
#include <sysclk.h> #include <sysclk.h>
#define FILE_CONFIG_DIR "/config/sys-clk/" #define FILE_CONFIG_DIR "/config/sys-clk"
#define FILE_FLAG_CHECK_INTERVAL_NS 5000000000ULL #define FILE_FLAG_CHECK_INTERVAL_NS 5000000000ULL
#define FILE_CONTEXT_CSV_PATH FILE_CONFIG_DIR "/context.csv" #define FILE_CONTEXT_CSV_PATH FILE_CONFIG_DIR "/context.csv"
#define FILE_LOG_FLAG_PATH FILE_CONFIG_DIR "/log.flag" #define FILE_LOG_FLAG_PATH FILE_CONFIG_DIR "/log.flag"