Skip to content

Commit

Permalink
DFReader.py - pointless else here
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Barker <pb-gh@barker.dropbear.id.au>
  • Loading branch information
shancock884 and peterbarker committed Mar 18, 2024
1 parent 9ec328b commit 4b6bc5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DFReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,8 @@ def metadata_tree(self,verbose=False):
mavutil.mavlink.MAV_TYPE_SUBMARINE : "Sub",
mavutil.mavlink.MAV_TYPE_AIRSHIP : "Blimp",
}
if self.parent.mav_type in mapping:
if self.parent.mav_type not in mapping:
return None
path = self.dot_mavproxy(os.path.join("LogMessages","%s.xml" % mapping[self.parent.mav_type]))
else:
return None
Expand Down

0 comments on commit 4b6bc5a

Please sign in to comment.