diff --git a/mavsdk/action_server.py b/mavsdk/action_server.py index bdcf46a..794a664 100644 --- a/mavsdk/action_server.py +++ b/mavsdk/action_server.py @@ -567,7 +567,7 @@ async def arm_disarm(self): raise ActionServerError(result, "arm_disarm()") if result.result == ActionServerResult.Result.SUCCESS: - arm_disarm_stream.cancel(); + arm_disarm_stream.cancel() return @@ -606,7 +606,7 @@ async def flight_mode_change(self): raise ActionServerError(result, "flight_mode_change()") if result.result == ActionServerResult.Result.SUCCESS: - flight_mode_change_stream.cancel(); + flight_mode_change_stream.cancel() return @@ -645,7 +645,7 @@ async def takeoff(self): raise ActionServerError(result, "takeoff()") if result.result == ActionServerResult.Result.SUCCESS: - takeoff_stream.cancel(); + takeoff_stream.cancel() return @@ -684,7 +684,7 @@ async def land(self): raise ActionServerError(result, "land()") if result.result == ActionServerResult.Result.SUCCESS: - land_stream.cancel(); + land_stream.cancel() return @@ -723,7 +723,7 @@ async def reboot(self): raise ActionServerError(result, "reboot()") if result.result == ActionServerResult.Result.SUCCESS: - reboot_stream.cancel(); + reboot_stream.cancel() return @@ -762,7 +762,7 @@ async def shutdown(self): raise ActionServerError(result, "shutdown()") if result.result == ActionServerResult.Result.SUCCESS: - shutdown_stream.cancel(); + shutdown_stream.cancel() return @@ -801,7 +801,7 @@ async def terminate(self): raise ActionServerError(result, "terminate()") if result.result == ActionServerResult.Result.SUCCESS: - terminate_stream.cancel(); + terminate_stream.cancel() return diff --git a/mavsdk/calibration.py b/mavsdk/calibration.py index 52a5f80..e4f4f53 100644 --- a/mavsdk/calibration.py +++ b/mavsdk/calibration.py @@ -368,7 +368,7 @@ async def calibrate_gyro(self): raise CalibrationError(result, "calibrate_gyro()") if result.result == CalibrationResult.Result.SUCCESS: - calibrate_gyro_stream.cancel(); + calibrate_gyro_stream.cancel() return @@ -408,7 +408,7 @@ async def calibrate_accelerometer(self): raise CalibrationError(result, "calibrate_accelerometer()") if result.result == CalibrationResult.Result.SUCCESS: - calibrate_accelerometer_stream.cancel(); + calibrate_accelerometer_stream.cancel() return @@ -448,7 +448,7 @@ async def calibrate_magnetometer(self): raise CalibrationError(result, "calibrate_magnetometer()") if result.result == CalibrationResult.Result.SUCCESS: - calibrate_magnetometer_stream.cancel(); + calibrate_magnetometer_stream.cancel() return @@ -488,7 +488,7 @@ async def calibrate_level_horizon(self): raise CalibrationError(result, "calibrate_level_horizon()") if result.result == CalibrationResult.Result.SUCCESS: - calibrate_level_horizon_stream.cancel(); + calibrate_level_horizon_stream.cancel() return @@ -528,7 +528,7 @@ async def calibrate_gimbal_accelerometer(self): raise CalibrationError(result, "calibrate_gimbal_accelerometer()") if result.result == CalibrationResult.Result.SUCCESS: - calibrate_gimbal_accelerometer_stream.cancel(); + calibrate_gimbal_accelerometer_stream.cancel() return diff --git a/mavsdk/ftp.py b/mavsdk/ftp.py index 336bb67..ecb1b2e 100644 --- a/mavsdk/ftp.py +++ b/mavsdk/ftp.py @@ -432,7 +432,7 @@ async def download(self, remote_file_path, local_dir, use_burst): raise FtpError(result, "download()", remote_file_path, local_dir, use_burst) if result.result == FtpResult.Result.SUCCESS: - download_stream.cancel(); + download_stream.cancel() return @@ -482,7 +482,7 @@ async def upload(self, local_file_path, remote_dir): raise FtpError(result, "upload()", local_file_path, remote_dir) if result.result == FtpResult.Result.SUCCESS: - upload_stream.cancel(); + upload_stream.cancel() return diff --git a/mavsdk/log_files.py b/mavsdk/log_files.py index a608159..11f416c 100644 --- a/mavsdk/log_files.py +++ b/mavsdk/log_files.py @@ -422,7 +422,7 @@ async def download_log_file(self, entry, path): raise LogFilesError(result, "download_log_file()", entry, path) if result.result == LogFilesResult.Result.SUCCESS: - download_log_file_stream.cancel(); + download_log_file_stream.cancel() return diff --git a/mavsdk/mission.py b/mavsdk/mission.py index 9e40711..c60d8d4 100644 --- a/mavsdk/mission.py +++ b/mavsdk/mission.py @@ -1054,7 +1054,7 @@ async def upload_mission_with_progress(self, mission_plan): raise MissionError(result, "upload_mission_with_progress()", mission_plan) if result.result == MissionResult.Result.SUCCESS: - upload_mission_with_progress_stream.cancel(); + upload_mission_with_progress_stream.cancel() return @@ -1148,7 +1148,7 @@ async def download_mission_with_progress(self): raise MissionError(result, "download_mission_with_progress()") if result.result == MissionResult.Result.SUCCESS: - download_mission_with_progress_stream.cancel(); + download_mission_with_progress_stream.cancel() return diff --git a/mavsdk/mission_raw_server.py b/mavsdk/mission_raw_server.py index 0de20d1..d44562e 100644 --- a/mavsdk/mission_raw_server.py +++ b/mavsdk/mission_raw_server.py @@ -658,7 +658,7 @@ async def incoming_mission(self): raise MissionRawServerError(result, "incoming_mission()") if result.result == MissionRawServerResult.Result.SUCCESS: - incoming_mission_stream.cancel(); + incoming_mission_stream.cancel() return