summaryrefslogtreecommitdiff
path: root/Mode/ModeDemo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Mode/ModeDemo.cpp')
-rw-r--r--Mode/ModeDemo.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Mode/ModeDemo.cpp b/Mode/ModeDemo.cpp
index 4add135..f32e03c 100644
--- a/Mode/ModeDemo.cpp
+++ b/Mode/ModeDemo.cpp
@@ -41,7 +41,7 @@ bool ModeDemo::start() {
_initial_data_rate = _dot->getTxDataRate();
// use configured data rate and power if possible
- if (_band == mDot::FB_915 && _initial_data_rate == mDot::DR0) {
+ if ((_band == mDot::FB_US915 || _band == mDot::FB_AU915) && _initial_data_rate == mDot::DR0) {
logInfo("using DR1 instead of DR0 - DR0 max packet size is too small for data");
_dot->setTxDataRate(mDot::DR1);
}
@@ -103,8 +103,9 @@ bool ModeDemo::start() {
case ButtonHandler::sw1_hold:
_send_timer.stop();
_send_timer.reset();
- if (_band == mDot::FB_915)
+ if (_band == mDot::FB_US915 || _band == mDot::FB_AU915) {
_dot->setTxDataRate(_initial_data_rate);
+ }
return true;
}
}