summaryrefslogtreecommitdiff
path: root/Mode/ModeSemtech.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Mode/ModeSemtech.cpp')
-rw-r--r--Mode/ModeSemtech.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/Mode/ModeSemtech.cpp b/Mode/ModeSemtech.cpp
index 9de48ad..5c2d180 100644
--- a/Mode/ModeSemtech.cpp
+++ b/Mode/ModeSemtech.cpp
@@ -58,7 +58,7 @@ void ModeSemtech::init()
_Sw1 = intToString(_power);
_help.display();
osDelay(2000);
- if(_band==mDot::FB_868){
+ if(_band==mDot::FB_EU868){
_sem.display(_link_check, _snr, _rssi, _power, _sub_band, _padding, _data_rate);
_sem.initial();
_state = PARAMETERS;
@@ -84,7 +84,7 @@ void ModeSemtech::drIncrement()
void ModeSemtech::changeDataRate()
{
if(_drAll) {
- if(_band == mDot::FB_868) _data_rate = -1;
+ if(_band == mDot::FB_EU868) _data_rate = -1;
else _data_rate = mDot::DR1;
_drAll = false;
}
@@ -94,7 +94,7 @@ void ModeSemtech::changeDataRate()
void ModeSemtech::changeParameter()
{
_parameter++;
- if(_band==mDot::FB_868&&_parameter==FSB)_parameter++;
+ if(_band==mDot::FB_EU868&&_parameter==FSB)_parameter++;
if(_parameter>INTERVAL)_parameter=0;
switch(_parameter) {
case DATA_RATE:
@@ -219,7 +219,7 @@ void ModeSemtech::send()
{
_state = SENDING;
_send_timer.stop();
- if(_band==mDot::FB_868) {
+ if(_band==mDot::FB_EU868) {
while(_dot->getNextTxMs()>0) {
_sem.updateNextCh((int)(_dot->getNextTxMs()/1000));
osDelay(250);
@@ -239,7 +239,9 @@ bool ModeSemtech::start()
_button_timer.start();
ButtonHandler::ButtonEvent be;
osSignalClear(_main_id, buttonSignal | loraSignal);
- if(_band==mDot::FB_915)_join = new ModeJoin(_lcd, _buttons, _dot, _lora, _gps, _sensors);
+
+ if(_band == mDot::FB_US915 || _band == mDot::FB_AU915)
+ _join = new ModeJoin(_lcd, _buttons, _dot, _lora, _gps, _sensors);
while (true) {
if(_state==PARAMETERS)updateScreen();