From 2768562918b16be2c4d6745530e82741428f6bef Mon Sep 17 00:00:00 2001 From: Alexander Klein Date: Mon, 2 Jan 2023 13:35:21 +0100 Subject: [PATCH] add max alloc heap to systeminfo --- .../Systeminformation/menuSysteminformatio.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/SpecialMenus/Systeminformation/menuSysteminformatio.cpp b/src/SpecialMenus/Systeminformation/menuSysteminformatio.cpp index 551de4d..fe57fa3 100644 --- a/src/SpecialMenus/Systeminformation/menuSysteminformatio.cpp +++ b/src/SpecialMenus/Systeminformation/menuSysteminformatio.cpp @@ -27,11 +27,15 @@ void MenuSysteminformation::printPage() const { break; case 1: + lineOne = "Max alloc heap:"; + lineTwo.concat(ESP.getMaxAllocHeap()); + + case 2: lineOne = "Uptime in secs:"; lineTwo.concat((millis() / 1000)); break; - case 2: + case 3: lineOne = "Main battery:"; lineTwo = ""; lineTwo.concat(this->mainBattery->getBatteryPercent()); @@ -39,7 +43,7 @@ void MenuSysteminformation::printPage() const { lineTwo.concat(this->mainBattery->getBatteryVoltage()); break; - case 3: + case 4: lineOne = "PS3 battery"; lineTwo = "is "; lineTwo.concat(MenuSysteminformation::ps3ToString(this->gamepad->data.status.battery));