From 53c06d0e002016e3a8dd72e325ba902f2eecaf2a Mon Sep 17 00:00:00 2001 From: Mike Fiore Date: Fri, 8 Jan 2016 11:06:23 -0600 Subject: display frequency band and sub band correctly even if they change in configuration --- Mode/ModeJoin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Mode') diff --git a/Mode/ModeJoin.cpp b/Mode/ModeJoin.cpp index 681147b..3dc3c07 100644 --- a/Mode/ModeJoin.cpp +++ b/Mode/ModeJoin.cpp @@ -96,8 +96,10 @@ void ModeJoin::display() { _join.updateId(_dot->getNetworkName()); _join.updateKey(_dot->getNetworkPassphrase()); } - if (_band == mDot::FB_915) + if (_band == mDot::FB_915) { + _sub_band = _dot->getFrequencySubBand(); _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); -- cgit v1.2.3