hocclk: better aotag
This commit is contained in:
@@ -37,6 +37,7 @@ tsl::elm::ListItem* ramBWItemCpu = NULL;
|
||||
tsl::elm::ListItem* ramBWItemGpu = NULL;
|
||||
tsl::elm::ListItem* ramBWItemMax = NULL;
|
||||
tsl::elm::ListItem* bqtempitem = NULL;
|
||||
tsl::elm::ListItem* aotagTempItem = NULL;
|
||||
|
||||
ImageElement* CatImage = NULL;
|
||||
HideableCategoryHeader* CatHeader = NULL;
|
||||
@@ -74,6 +75,10 @@ void AboutGui::listUI()
|
||||
this->listElement->addItem(eristaPLLXItem);
|
||||
}
|
||||
|
||||
aotagTempItem =
|
||||
new tsl::elm::ListItem("AOTAG Temp:");
|
||||
this->listElement->addItem(aotagTempItem);
|
||||
|
||||
bqtempitem =
|
||||
new tsl::elm::ListItem("BQ24193 Temp:");
|
||||
this->listElement->addItem(bqtempitem);
|
||||
@@ -369,6 +374,14 @@ void AboutGui::refresh()
|
||||
eristaPLLXItem->setValue(strings[3]);
|
||||
}
|
||||
|
||||
u32 millis = context->temps[HocClkThermalSensor_AO];
|
||||
if(millis > 0) {
|
||||
sprintf(strings[11], "%u.%u °C", millis / 1000U, (millis % 1000U) / 100U);
|
||||
} else {
|
||||
sprintf(strings[11], "N/A");
|
||||
}
|
||||
aotagTempItem->setValue(strings[11]);
|
||||
|
||||
sprintf(strings[4], "%u.%u / %u mV", context->voltages[HocClkVoltage_EMCVDD2] / 1000U, (context->voltages[HocClkVoltage_EMCVDD2] % 1000U) / 100U, context->voltages[HocClkVoltage_EMCVDDQ] / 1000);
|
||||
ramVoltItem->setValue(strings[4]);
|
||||
|
||||
|
||||
@@ -589,6 +589,7 @@ protected:
|
||||
Result rc = hocclkIpcGetConfigValues(this->configList);
|
||||
if (R_FAILED(rc)) [[unlikely]] { FatalGui::openWithResultCode("hocclkIpcGetConfigValues", rc); return; }
|
||||
this->listElement->addItem(new tsl::elm::CategoryHeader("General Settings"));
|
||||
|
||||
ValueThresholds thresholdsDisabled(0, 0);
|
||||
std::vector<NamedValue> ramVoltDispModes = {
|
||||
NamedValue("VDD2", RamDisplayMode_VDD2),
|
||||
@@ -743,6 +744,32 @@ protected:
|
||||
);
|
||||
|
||||
}
|
||||
if(IsAula()) {
|
||||
std::vector<NamedValue> displayClrPreset = {
|
||||
NamedValue("Do Not Override", AulaDisplayColorMode_DoNotOverride),
|
||||
NamedValue("Basic", AulaDisplayColorMode_Basic),
|
||||
NamedValue("Saturated", AulaDisplayColorMode_Saturated),
|
||||
NamedValue("Washed", AulaDisplayColorMode_Washed),
|
||||
NamedValue("Natural", AulaDisplayColorMode_Natural),
|
||||
NamedValue("Vivid", AulaDisplayColorMode_Vivid),
|
||||
NamedValue("Washed", AulaDisplayColorMode_Night0, "Night"),
|
||||
NamedValue("Basic", AulaDisplayColorMode_Night1, "Night"),
|
||||
NamedValue("Natural", AulaDisplayColorMode_Night2, "Night"),
|
||||
NamedValue("Vivid", AulaDisplayColorMode_Night3, "Night"),
|
||||
};
|
||||
|
||||
addConfigButton(
|
||||
HocClkConfigValue_AulaDisplayColorPreset,
|
||||
"Display Color Preset",
|
||||
ValueRange(0, 1, 1, "", 0),
|
||||
"Display Color Preset",
|
||||
&thresholdsDisabled,
|
||||
{},
|
||||
displayClrPreset,
|
||||
false,
|
||||
false
|
||||
);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -831,32 +858,6 @@ protected:
|
||||
{},
|
||||
false
|
||||
);
|
||||
} else {
|
||||
std::vector<NamedValue> displayClrPreset = {
|
||||
NamedValue("Basic", AulaDisplayColorMode_Basic),
|
||||
NamedValue("Saturated", AulaDisplayColorMode_Saturated),
|
||||
NamedValue("Washed", AulaDisplayColorMode_Washed),
|
||||
NamedValue("Natural", AulaDisplayColorMode_Natural),
|
||||
NamedValue("Vivid", AulaDisplayColorMode_Vivid),
|
||||
NamedValue("Washed", AulaDisplayColorMode_Night0, "Night"),
|
||||
NamedValue("Basic", AulaDisplayColorMode_Night1, "Night"),
|
||||
NamedValue("Natural", AulaDisplayColorMode_Night2, "Night"),
|
||||
NamedValue("Vivid", AulaDisplayColorMode_Night3, "Night"),
|
||||
};
|
||||
|
||||
addConfigButton(
|
||||
HocClkConfigValue_AulaDisplayColorPreset,
|
||||
"Display Color Preset",
|
||||
ValueRange(0, 1, 1, "", 0),
|
||||
"Display Color Preset",
|
||||
&thresholdsDisabled,
|
||||
{},
|
||||
displayClrPreset,
|
||||
false,
|
||||
false
|
||||
);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user