Skip to content

Commit e412e95

Browse files
Huibeanpeterbarker
authored andcommitted
incase None > int in python3
1 parent a80a9bd commit e412e95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dronekit/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1775,7 +1775,7 @@ def is_armable(self):
17751775
# check that mode is not INITIALSING
17761776
# check that we have a GPS fix
17771777
# check that EKF pre-arm is complete
1778-
return self.mode != 'INITIALISING' and self.gps_0.fix_type > 1 and self._ekf_predposhorizabs
1778+
return self.mode != 'INITIALISING' and (self.gps_0.fix_type is not None and self.gps_0.fix_type > 1) and self._ekf_predposhorizabs
17791779

17801780
@property
17811781
def system_status(self):

0 commit comments

Comments
 (0)