From deeb59208455bd50fd4301d8e8cecad4b2a61e44 Mon Sep 17 00:00:00 2001 From: richonguzman Date: Sun, 16 Jul 2023 17:02:30 -0400 Subject: [PATCH] battery info in OLED update --- src/utils.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/utils.cpp b/src/utils.cpp index 0dae121..e09c338 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -115,6 +115,9 @@ void checkBeaconInterval() { } sixthLine = ""; show_display(firstLine, secondLine, thirdLine, fourthLine, fifthLine, sixthLine, "SENDING iGate BEACON", 1000); + if (Config.sendBatteryVoltage) { + sixthLine = " " + beaconPacket; + } seventhLine = " listening..."; espClient.write((beaconPacket + "\n").c_str()); show_display(firstLine, secondLine, thirdLine, fourthLine, fifthLine, sixthLine, seventhLine, 0); @@ -130,6 +133,9 @@ void checkBeaconInterval() { fifthLine = ""; sixthLine = ""; show_display(firstLine, secondLine, thirdLine, fourthLine, fifthLine, sixthLine, "SENDING iGate BEACON", 0); + if (Config.sendBatteryVoltage) { + sixthLine = " " + beaconPacket; + } seventhLine = " listening..."; if (stationMode == 4) { LoRa_Utils::changeFreqTx();