summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Layout/LayoutJoin.cpp4
-rw-r--r--Layout/LayoutSurveyProgress.cpp4
2 files changed, 6 insertions, 2 deletions
diff --git a/Layout/LayoutJoin.cpp b/Layout/LayoutJoin.cpp
index 83e8551..fea558e 100644
--- a/Layout/LayoutJoin.cpp
+++ b/Layout/LayoutJoin.cpp
@@ -89,7 +89,9 @@ void LayoutJoin::updateCountdown(uint32_t seconds) {
size_t size;
memset(buf, 0, sizeof(buf));
- writeField(_fCountdownLabel, "No Free Channel", true);
+ // for some reason, there's a % character that gets displayed in the last column
+ // add the extra spaces to wipe it out
+ writeField(_fCountdownLabel, "No Free Channel ", true);
size = snprintf(buf, sizeof(buf), "%lu s", seconds);
writeField(_fCountdown, buf, size, true);
}
diff --git a/Layout/LayoutSurveyProgress.cpp b/Layout/LayoutSurveyProgress.cpp
index c0434f7..4a50fbb 100644
--- a/Layout/LayoutSurveyProgress.cpp
+++ b/Layout/LayoutSurveyProgress.cpp
@@ -27,7 +27,9 @@ void LayoutSurveyProgress::updateCountdown(uint32_t seconds) {
size_t size;
memset(buf, 0, sizeof(buf));
- writeField(_fCountdownLabel, "No Free Channel", true);
+ // for some reason, there's a % character that gets displayed in the last column
+ // add the extra spaces to wipe it out
+ writeField(_fCountdownLabel, "No Free Channel ", true);
size = snprintf(buf, sizeof(buf), "%lu s", seconds);
writeField(_fCountdown, buf, size, true);
}