Skip to content

Commit c9034af

Browse files
committed
Fix default type for callback function in mission controller
1 parent 061e7b5 commit c9034af

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

radio/app/controllers/missionController.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def _getCommandName(self, command: int) -> str:
9090
return f"Unknown command {command}"
9191

9292
def getCurrentMission(
93-
self, mission_type: int, progressUpdateCallback: Optional[Callable]
93+
self, mission_type: int, progressUpdateCallback: Optional[Callable] = None
9494
) -> Response:
9595
"""
9696
Get the current mission of a specific type from the drone.
@@ -159,7 +159,7 @@ def getCurrentMissionAll(self) -> Response:
159159
}
160160

161161
def getMissionItems(
162-
self, mission_type: int, progressUpdateCallback: Optional[Callable]
162+
self, mission_type: int, progressUpdateCallback: Optional[Callable] = None
163163
) -> Response:
164164
"""
165165
Get all mission items of a specific type from the drone.
@@ -537,7 +537,7 @@ def uploadMission(
537537
self,
538538
mission_type: int,
539539
waypoints: List[dict],
540-
progressUpdateCallback: Optional[Callable],
540+
progressUpdateCallback: Optional[Callable] = None,
541541
) -> Response:
542542
"""
543543
Uploads the current mission to the drone. This method overwrites the current loader if the upload is successful.

0 commit comments

Comments
 (0)