summaryrefslogtreecommitdiff
path: root/Layout
diff options
context:
space:
mode:
authorMike Fiore <mfiore@multitech.com>2016-01-06 15:26:08 -0600
committerMike Fiore <mfiore@multitech.com>2016-01-06 15:26:08 -0600
commit4a7f9e8e5bb6377011d63bddfbbd0f5edda8637a (patch)
treef017c042e9d2706e5994843bfa7f0ca31301ccd6 /Layout
parentfe6d4ae8b42389d48bbb14782d4fbca4d77e014e (diff)
downloadmtdot-box-evb-factory-firmware-4a7f9e8e5bb6377011d63bddfbbd0f5edda8637a.tar.gz
mtdot-box-evb-factory-firmware-4a7f9e8e5bb6377011d63bddfbbd0f5edda8637a.tar.bz2
mtdot-box-evb-factory-firmware-4a7f9e8e5bb6377011d63bddfbbd0f5edda8637a.zip
display countdown over "send" and "interval" labels instead of over "back" label in 868 band and demo mode
Diffstat (limited to 'Layout')
-rw-r--r--Layout/LayoutDemoSampling.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/Layout/LayoutDemoSampling.cpp b/Layout/LayoutDemoSampling.cpp
index 769d6b7..fa37bcb 100644
--- a/Layout/LayoutDemoSampling.cpp
+++ b/Layout/LayoutDemoSampling.cpp
@@ -53,11 +53,15 @@ void LayoutDemoSampling::updateSw2(std::string sw2) {
void LayoutDemoSampling::updateCountdown(uint32_t seconds) {
char buf[32];
size_t size;
+ std::string s;
// make sure the string version is used
writeField(_fInfo, string("No Free Channel"), true);
size = snprintf(buf, sizeof(buf), "%lu s", seconds);
- writeField(_fSw2, buf, size, true);
+ for (int i = 0; i < _fSw1._maxSize - size; i++)
+ s.append(" ");
+ s.append(buf, size);
+ writeField(_fSw1, s, true);
}
void LayoutDemoSampling::updateInterval(uint32_t seconds) {