add apps to system overview
This commit is contained in:
@ -20,6 +20,7 @@ enum class DriverViewStatusType {
|
||||
Shunt,
|
||||
BPR,
|
||||
BPF,
|
||||
APPS,
|
||||
};
|
||||
|
||||
class DriverViewStatusItem : public DriverViewStatusItemBase {
|
||||
|
||||
@ -119,6 +119,12 @@ void DriverViewStatusItem::update() {
|
||||
break;
|
||||
}
|
||||
|
||||
case DriverViewStatusType::APPS:
|
||||
Unicode::snprintf(valueBuffer, 8, "%d%%%", (int)(vehicle_state.apps_percent));
|
||||
text.setWildcard(valueBuffer);
|
||||
bg.setColor(COLOR_OFF);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
@ -19,6 +19,7 @@ void SystemOverviewView::setupScreen() {
|
||||
statusShunt.setType(DriverViewStatusType::Shunt);
|
||||
statusBPF.setType(DriverViewStatusType::BPF);
|
||||
statusBPR.setType(DriverViewStatusType::BPR);
|
||||
statusAPPS.setType(DriverViewStatusType::APPS);
|
||||
status1.setVisible(false);
|
||||
status2.setVisible(false);
|
||||
status3.setVisible(false);
|
||||
|
||||
Reference in New Issue
Block a user