summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Fiore <mfiore@multitech.com>2015-11-20 08:41:12 -0600
committerMike Fiore <mfiore@multitech.com>2015-11-20 08:41:12 -0600
commit5634a9576e46c0c89e3b0c876d5ecf7b7e70c067 (patch)
tree35698a57a698ae895b087679319321f30258c88c
parent674cdb5c13bad3598381b81d843b5aeee5798d1f (diff)
downloadmtdot-box-evb-factory-firmware-5634a9576e46c0c89e3b0c876d5ecf7b7e70c067.tar.gz
mtdot-box-evb-factory-firmware-5634a9576e46c0c89e3b0c876d5ecf7b7e70c067.tar.bz2
mtdot-box-evb-factory-firmware-5634a9576e46c0c89e3b0c876d5ecf7b7e70c067.zip
make "No Free Channel" lines full screen width to wipe out random character - don't know where it's coming from!
-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);
}