From 2c766366fcf8cb79dbd440313e280789d77f5ea5 Mon Sep 17 00:00:00 2001 From: davidsastresas Date: Wed, 8 Mar 2023 01:35:58 +0100 Subject: [PATCH] PhotoVideoControl: fix race condition for only picture cameras --- src/FlightMap/Widgets/PhotoVideoControl.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FlightMap/Widgets/PhotoVideoControl.qml b/src/FlightMap/Widgets/PhotoVideoControl.qml index c572ca6..558c3b1 100644 --- a/src/FlightMap/Widgets/PhotoVideoControl.qml +++ b/src/FlightMap/Widgets/PhotoVideoControl.qml @@ -101,7 +101,7 @@ Rectangle { function toggleShooting() { console.log("toggleShooting", _anyVideoStreamAvailable) - if (_mavlinkCamera && _mavlinkCamera.capturesVideo) { + if (_mavlinkCamera && _mavlinkCamera.capturesVideo || _mavlinkCamera.capturesPhotos ) { if(_mavlinkCameraInVideoMode) { _mavlinkCamera.toggleVideo() } else {