summaryrefslogtreecommitdiff
path: root/Layout/LayoutSurveySuccess.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Layout/LayoutSurveySuccess.cpp')
-rw-r--r--Layout/LayoutSurveySuccess.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/Layout/LayoutSurveySuccess.cpp b/Layout/LayoutSurveySuccess.cpp
index 68ef1dc..38edb5c 100644
--- a/Layout/LayoutSurveySuccess.cpp
+++ b/Layout/LayoutSurveySuccess.cpp
@@ -85,6 +85,10 @@ void LayoutSurveySuccess::updateStats(LoRaHandler::LoRaPing ping) {
void LayoutSurveySuccess::updateGpsLatitude(GPSPARSER::latitude lat) {
}
+void LayoutSurveySuccess::updateGpsLatitude(std::string msg) {
+ writeField(_fGpsLat, msg, true);
+}
+
void LayoutSurveySuccess::updateGpsLongitude(GPSPARSER::longitude lon) {
}
@@ -104,7 +108,7 @@ void LayoutSurveySuccess::updateSw2(std::string sw2) {
}
void LayoutSurveySuccess::updateCountdown(uint32_t seconds) {
- char buf[16];
+ char buf[32];
size_t size;
memset(buf, 0, sizeof(buf));
@@ -115,3 +119,12 @@ void LayoutSurveySuccess::updateCountdown(uint32_t seconds) {
writeField(_fSw2, buf, size, true);
}
+void LayoutSurveySuccess::updatePassFail(uint8_t pass, uint8_t fail) {
+ char buf[32];
+ size_t size;
+
+ memset(buf, 0, sizeof(buf));
+ size = snprintf(buf, sizeof(buf), "Pass %u Fail %u", pass, fail);
+ writeField(_fGpsTime, buf, size, true);
+}
+