diff options
author | Ryan Klaassen <ryan.klaassen@multitech.com> | 2016-08-16 14:06:54 -0500 |
---|---|---|
committer | Ryan Klaassen <ryan.klaassen@multitech.com> | 2016-08-16 14:06:54 -0500 |
commit | 875d5ed6c71d2ef839bd8c020e42c7ddd9a29623 (patch) | |
tree | 14c289a4d86be5147372cbe83e1c1b14954ce5fb | |
parent | 20d9a20195865f511cc128a65e5cf842da771566 (diff) | |
download | mtdot-box-evb-factory-firmware-875d5ed6c71d2ef839bd8c020e42c7ddd9a29623.tar.gz mtdot-box-evb-factory-firmware-875d5ed6c71d2ef839bd8c020e42c7ddd9a29623.tar.bz2 mtdot-box-evb-factory-firmware-875d5ed6c71d2ef839bd8c020e42c7ddd9a29623.zip |
Replace LayoutJoin.cpp
-rw-r--r-- | Layout/LayoutJoin.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Layout/LayoutJoin.cpp b/Layout/LayoutJoin.cpp index 687437d..a0ec1ee 100644 --- a/Layout/LayoutJoin.cpp +++ b/Layout/LayoutJoin.cpp @@ -75,8 +75,12 @@ void LayoutJoin::updateFsb(uint8_t band) { writeField(_fFsb, buf, size, true); } -void LayoutJoin::updateRate(std::string rate) { - writeField(_fRate, rate, true); +void LayoutJoin::updateRate(uint8_t rate) { + char buf[8]; + size_t size; + + size = snprintf(buf, sizeof(buf), "%u", rate); + writeField(_fRate, buf, size, true); } void LayoutJoin::updatePower(uint32_t power) { @@ -129,7 +133,7 @@ void LayoutJoin::updateJoinFsb(uint8_t band) { writeField(_fCancel, buf, size, true); } -void LayoutJoin::displayEditFsb(string rate, uint32_t power, uint8_t band, string key, string id){ +void LayoutJoin::displayEditFsb(uint8_t rate, uint32_t power, uint8_t band, string key, string id){ clear(); startUpdate(); |