hocclk: better aotag

This commit is contained in:
souldbminersmwc
2026-05-02 22:05:15 -04:00
parent 5bf7fdf60e
commit 2f830bac53
10 changed files with 83 additions and 35 deletions

View File

@@ -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]);