forked from Archive/PX4-Autopilot
px_uploader: added ModemManager warning
This commit is contained in:
parent
ef79d03276
commit
0785512026
|
@ -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')))
|
||||
|
|
Loading…
Reference in New Issue