From 8cf0b09efc0faa4773c11968e4eeece6475d0a3f Mon Sep 17 00:00:00 2001 From: jpmeijers Date: Sun, 26 Feb 2017 18:45:18 +0100 Subject: [PATCH] More fixes to run.py --- dev/build.sh | 2 +- run.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dev/build.sh b/dev/build.sh index 04b2307..e55c86f 100755 --- a/dev/build.sh +++ b/dev/build.sh @@ -71,7 +71,7 @@ else fi apt-get update -apt-get -y install protobuf-compiler libprotobuf-dev libprotoc-dev automake libtool autoconf +apt-get -y install protobuf-compiler libprotobuf-dev libprotoc-dev automake libtool autoconf python-dev python-rpi.gpio cd $INSTALL_DIR/dev/lora_gateway/libloragw sed -i -e 's/PLATFORM= .*$/PLATFORM= imst_rpi/g' library.cfg diff --git a/run.py b/run.py index e484660..a1ea56d 100755 --- a/run.py +++ b/run.py @@ -18,7 +18,7 @@ except RuntimeError: GWID_PREFIX="FFFE" -if not os.path.exists("mp_pkg_fwd"): +if not os.path.exists("mp_pkt_fwd"): print ("ERROR: gateway executable not found. Is it built yet?") sys.exit(0) @@ -65,7 +65,7 @@ print ("Gateway Type:\t"+os.environ.get("GW_TYPE")) print ("Gateway ID:\t"+os.environ.get("GW_ID")) print ("Gateway EUI:\t"+my_eui) print ("Gateway Key:\t"+os.environ.get("GW_KEY")) -print ("Has hardware GPS: "+os.getenv('GW_GPS', False)) +print ("Has hardware GPS: "+str(os.getenv('GW_GPS', False))) print ("Hardware GPS port: "+os.getenv('GW_GPS_PORT', "/dev/ttyAMA0"))