mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
autotest: sim_vehicle: neaten sanity check for sysid
This commit is contained in:
parent
4d5411b42f
commit
856fe6a1fb
@ -719,8 +719,8 @@ def start_vehicle(binary, opts, stuff, spawns=None):
|
||||
raise ValueError("Can't use auto-sysid and sysid together")
|
||||
sysid = i + 1
|
||||
# Take 0-based logging into account
|
||||
if i < 0 or i > 255:
|
||||
raise ValueError("Invalid system id %d" % i)
|
||||
if sysid < 1 or sysid > 255:
|
||||
raise ValueError("Invalid system id %d" % sysid)
|
||||
c.extend(["--sysid", str(sysid)])
|
||||
|
||||
os.chdir(i_dir)
|
||||
|
Loading…
Reference in New Issue
Block a user