From 89643fb15feba53230c1bcf62569e2e5866fc4f2 Mon Sep 17 00:00:00 2001 From: Mike Fiore Date: Mon, 23 Nov 2015 13:13:09 -0600 Subject: display frequency sub band when joining in 915 frequency band --- Mode/ModeJoin.cpp | 2 ++ main.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Mode/ModeJoin.cpp b/Mode/ModeJoin.cpp index e8026b9..d1e69ea 100644 --- a/Mode/ModeJoin.cpp +++ b/Mode/ModeJoin.cpp @@ -85,6 +85,8 @@ void ModeJoin::display() { _join.updateId(_dot->getNetworkName()); _join.updateKey(_dot->getNetworkPassphrase()); } + if (_band == mDot::FB_915) + _join.updateFsb(_sub_band); // mDot::DataRateStr returns format SF_XX - we only want to display the XX part _join.updateRate(_dot->DataRateStr(_data_rate).substr(3)); _join.updatePower(_power); diff --git a/main.cpp b/main.cpp index a106db7..9c97640 100644 --- a/main.cpp +++ b/main.cpp @@ -72,7 +72,7 @@ int main() { lora = new LoRaHandler(main_id); // start of temporary stuff! - dot->setFrequencyBand(mDot::FB_868); + //dot->setFrequencyBand(mDot::FB_868); if (dot->getFrequencyBand() == mDot::FB_915) dot->setFrequencySubBand(mDot::FSB_7); dot->setJoinMode(mDot::OTA); -- cgit v1.2.3