Skip to content

Commit

Permalink
Hack
Browse files Browse the repository at this point in the history
  • Loading branch information
amilcarlucas committed Aug 13, 2024
1 parent d9e4f22 commit cf438d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mavftp.py
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,8 @@ def __mavlink_packet(self, m): # pylint: disable=too-many-branches
op = self.__op_parse(m)
now = time.time()
dt = now - self.last_op_time
if (op.session + 1) % 256 == self.session and op.req_opcode != OP_BurstReadFile:
op.session = self.session # fixme, this is a huge hack for a flight controller code bug
if self.ftp_settings.debug > 1:
logging.info("< %s dt=%.2f", op, dt)
if op.session != self.session:
Expand Down

0 comments on commit cf438d9

Please sign in to comment.