aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2014-05-19 16:49:41 +1000
committerLorenz Meier <lm@inf.ethz.ch>2014-07-08 11:41:04 +0200
commit07855120268cef79e9d23d7cd091c526fa4622af (patch)
tree117a03e1acd47394144a3c2673fdb1893b5fa7b6 /Tools
parentef79d032760e83850a9dbcbe5ae34c8b72f5fb4f (diff)
downloadpx4-firmware-07855120268cef79e9d23d7cd091c526fa4622af.tar.gz
px4-firmware-07855120268cef79e9d23d7cd091c526fa4622af.tar.bz2
px4-firmware-07855120268cef79e9d23d7cd091c526fa4622af.zip
px_uploader: added ModemManager warning
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/px_uploader.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tools/px_uploader.py b/Tools/px_uploader.py
index 985e6ffd9..a113f5628 100755
--- a/Tools/px_uploader.py
+++ b/Tools/px_uploader.py
@@ -63,6 +63,7 @@ import zlib
import base64
import time
import array
+import os
from sys import platform as _platform
@@ -449,6 +450,12 @@ parser.add_argument('--baud', action="store", type=int, default=115200, help="Ba
parser.add_argument('firmware', action="store", help="Firmware file to be uploaded")
args = parser.parse_args()
+# warn people about ModemManager which interferes badly with Pixhawk
+if os.path.exists("/usr/sbin/ModemManager"):
+ print("=======================================================================")
+ print("WARNING: You should uninstall ModemManager as it conflicts with Pixhawk")
+ print("=======================================================================")
+
# Load the firmware file
fw = firmware(args.firmware)
print("Loaded firmware for %x,%x, waiting for the bootloader..." % (fw.property('board_id'), fw.property('board_revision')))