Skip to content

Commit 31ccb9c

Browse files
committed
feat(MAVFTP): increase MAVFTP session timeouts
1 parent aca6900 commit 31ccb9c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ardupilot_methodic_configurator/backend_mavftp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,8 @@ def __init__(
364364

365365
# Reset the flight controller FTP state-machine
366366
self.__send(FTP_OP(self.seq, self.session, OP_ResetSessions, 0, 0, 0, 0, None))
367-
self.process_ftp_reply("ResetSessions")
367+
# Increased timeout for ResetSessions to be more robust on loaded STM32 F4 controllers
368+
self.process_ftp_reply("ResetSessions", timeout=10)
368369

369370
def cmd_ftp(self, args) -> MAVFTPReturn: # noqa PRL0911, pylint: disable=too-many-return-statements, too-many-branches
370371
"""FTP operations."""

0 commit comments

Comments
 (0)