summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Layout/LayoutJoin.cpp10
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();