hocclk: reorganize about section
This commit is contained in:
@@ -50,7 +50,7 @@ AboutGui::~AboutGui()
|
|||||||
void AboutGui::listUI()
|
void AboutGui::listUI()
|
||||||
{
|
{
|
||||||
this->listElement->addItem(
|
this->listElement->addItem(
|
||||||
new tsl::elm::CategoryHeader("Information")
|
new tsl::elm::CategoryHeader("Voltages and Temperatures")
|
||||||
);
|
);
|
||||||
|
|
||||||
ramVoltItem =
|
ramVoltItem =
|
||||||
@@ -67,6 +67,9 @@ void AboutGui::listUI()
|
|||||||
this->listElement->addItem(eristaPLLXItem);
|
this->listElement->addItem(eristaPLLXItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this->listElement->addItem(
|
||||||
|
new tsl::elm::CategoryHeader("HW Info")
|
||||||
|
);
|
||||||
SpeedoItem =
|
SpeedoItem =
|
||||||
new tsl::elm::ListItem("Speedo:");
|
new tsl::elm::ListItem("Speedo:");
|
||||||
this->listElement->addItem(SpeedoItem);
|
this->listElement->addItem(SpeedoItem);
|
||||||
@@ -79,6 +82,20 @@ void AboutGui::listUI()
|
|||||||
new tsl::elm::ListItem("Module: ");
|
new tsl::elm::ListItem("Module: ");
|
||||||
this->listElement->addItem(DramModule);
|
this->listElement->addItem(DramModule);
|
||||||
|
|
||||||
|
waferCordsItem =
|
||||||
|
new tsl::elm::ListItem("Wafer Position:");
|
||||||
|
this->listElement->addItem(waferCordsItem);
|
||||||
|
|
||||||
|
if(IsHoag()) {
|
||||||
|
RETROStatusItem =
|
||||||
|
new tsl::elm::ListItem("RR Display status:");
|
||||||
|
this->listElement->addItem(RETROStatusItem);
|
||||||
|
}
|
||||||
|
|
||||||
|
this->listElement->addItem(
|
||||||
|
new tsl::elm::CategoryHeader("Software Info")
|
||||||
|
);
|
||||||
|
|
||||||
if(!IsHoag()) {
|
if(!IsHoag()) {
|
||||||
sysdockStatusItem =
|
sysdockStatusItem =
|
||||||
new tsl::elm::ListItem("sys-dock status:");
|
new tsl::elm::ListItem("sys-dock status:");
|
||||||
@@ -89,16 +106,6 @@ void AboutGui::listUI()
|
|||||||
new tsl::elm::ListItem("SaltyNX status:");
|
new tsl::elm::ListItem("SaltyNX status:");
|
||||||
this->listElement->addItem(saltyNXStatusItem);
|
this->listElement->addItem(saltyNXStatusItem);
|
||||||
|
|
||||||
if(IsHoag()) {
|
|
||||||
RETROStatusItem =
|
|
||||||
new tsl::elm::ListItem("RR Display status:");
|
|
||||||
this->listElement->addItem(RETROStatusItem);
|
|
||||||
}
|
|
||||||
|
|
||||||
waferCordsItem =
|
|
||||||
new tsl::elm::ListItem("Wafer Position:");
|
|
||||||
this->listElement->addItem(waferCordsItem);
|
|
||||||
|
|
||||||
this->listElement->addItem(
|
this->listElement->addItem(
|
||||||
new tsl::elm::CategoryHeader("Credits")
|
new tsl::elm::CategoryHeader("Credits")
|
||||||
);
|
);
|
||||||
@@ -303,7 +310,7 @@ void AboutGui::update()
|
|||||||
void AboutGui::refresh()
|
void AboutGui::refresh()
|
||||||
{
|
{
|
||||||
BaseMenuGui::refresh();
|
BaseMenuGui::refresh();
|
||||||
|
|
||||||
if (!this->context)
|
if (!this->context)
|
||||||
return;
|
return;
|
||||||
// Format strings once per refresh
|
// Format strings once per refresh
|
||||||
@@ -326,7 +333,7 @@ void AboutGui::refresh()
|
|||||||
|
|
||||||
if(IsErista()) {
|
if(IsErista()) {
|
||||||
u32 millis = context->temps[HocClkThermalSensor_PLLX];
|
u32 millis = context->temps[HocClkThermalSensor_PLLX];
|
||||||
sprintf(strings[3], "%u.%u", millis / 1000U, (millis % 1000U) / 100U);
|
sprintf(strings[3], "%u.%u °C", millis / 1000U, (millis % 1000U) / 100U);
|
||||||
eristaPLLXItem->setValue(strings[3]);
|
eristaPLLXItem->setValue(strings[3]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user