summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Fiore <mfiore@multitech.com>2015-11-23 13:13:09 -0600
committerMike Fiore <mfiore@multitech.com>2015-11-23 13:13:09 -0600
commit89643fb15feba53230c1bcf62569e2e5866fc4f2 (patch)
tree5a6c2d74445836be6dc94a3b7ea20ed07c122e1a
parent3ad4a2fde749077bce94115902ab9c6e9760a2f8 (diff)
downloadmtdot-box-evb-factory-firmware-89643fb15feba53230c1bcf62569e2e5866fc4f2.tar.gz
mtdot-box-evb-factory-firmware-89643fb15feba53230c1bcf62569e2e5866fc4f2.tar.bz2
mtdot-box-evb-factory-firmware-89643fb15feba53230c1bcf62569e2e5866fc4f2.zip
display frequency sub band when joining in 915 frequency band
-rw-r--r--Mode/ModeJoin.cpp2
-rw-r--r--main.cpp2
2 files changed, 3 insertions, 1 deletions
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);