summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeon Lindenfelser <llindenfelser@multitech.com>2016-10-17 10:34:33 -0500
committerLeon Lindenfelser <llindenfelser@multitech.com>2016-10-17 10:34:33 -0500
commit51af846aa838efac7a6bf46d001b43b5e1c446c8 (patch)
tree28436e96838b31c1db5f3fdea5351a641c79fd47
parent747c30c39e5147198841420e7c5149a61982d034 (diff)
downloadmtdot-box-evb-factory-firmware-51af846aa838efac7a6bf46d001b43b5e1c446c8.tar.gz
mtdot-box-evb-factory-firmware-51af846aa838efac7a6bf46d001b43b5e1c446c8.tar.bz2
mtdot-box-evb-factory-firmware-51af846aa838efac7a6bf46d001b43b5e1c446c8.zip
1. Move 'else' for code readability consistency.
2. Add forgotten NCP5623B version update to setup.sh.
-rw-r--r--Mode/ModeDemo.cpp3
-rwxr-xr-xsetup.sh2
2 files changed, 2 insertions, 3 deletions
diff --git a/Mode/ModeDemo.cpp b/Mode/ModeDemo.cpp
index cdabe32..9935b7b 100644
--- a/Mode/ModeDemo.cpp
+++ b/Mode/ModeDemo.cpp
@@ -45,8 +45,7 @@ bool ModeDemo::start() {
if(_initial_data_rate == mDot::DR0){
logInfo("using DR1 instead of DR0 - DR0 max packet size is too small for data");
_dot->setTxDataRate(mDot::DR1);
- }
- else{
+ }else{
logInfo("using SF_9 instead of SF_10 - SF_10 max packet size is too small for data");
_dot->setTxDataRate(mDot::SF_9);
}
diff --git a/setup.sh b/setup.sh
index 9bd8c46..52717d4 100755
--- a/setup.sh
+++ b/setup.sh
@@ -34,7 +34,7 @@ mkdir -p $LIB
update_hg_lib "ISL29011" 4
update_hg_lib "MMA845x" 4
update_hg_lib "MPL3115A2" 3
-update_hg_lib "NCP5623B" 3
+update_hg_lib "NCP5623B" 4
update_hg_lib "GpsParser" 10
update_hg_lib "DOGS102" 5