Fixed SplConfigItem_HardwareType detection
This commit is contained in:
@@ -24,15 +24,16 @@ MiscGui::MiscGui()
|
||||
splExit();
|
||||
|
||||
switch (hardware_type) {
|
||||
case 1: //Icosa
|
||||
case 2: //Copper
|
||||
this->isMariko = false;
|
||||
case 0: // Icosa
|
||||
case 1: // Copper
|
||||
case 4: // Calcio
|
||||
isMariko = false;
|
||||
break;
|
||||
// case 3: // Iowa
|
||||
// case 4: // Hoag
|
||||
// case 5: // Aula
|
||||
default:
|
||||
this->isMariko = true;
|
||||
// case 2: // Hoag
|
||||
// case 3: // Iowa
|
||||
// case 5: // Aula
|
||||
isMariko = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -85,12 +85,13 @@ void Clocks::Initialize()
|
||||
splExit();
|
||||
|
||||
switch (hardware_type) {
|
||||
case 1: //Icosa
|
||||
case 2: //Copper
|
||||
case 0: // Icosa
|
||||
case 1: // Copper
|
||||
case 4: // Calcio
|
||||
isMariko = false;
|
||||
break;
|
||||
case 2: // Hoag
|
||||
case 3: // Iowa
|
||||
case 4: // Hoag
|
||||
case 5: // Aula
|
||||
isMariko = true;
|
||||
break;
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include <cstdarg>
|
||||
#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_CONTEXT_CSV_PATH FILE_CONFIG_DIR "/context.csv"
|
||||
#define FILE_LOG_FLAG_PATH FILE_CONFIG_DIR "/log.flag"
|
||||
|
||||
Reference in New Issue
Block a user