From f035a9cc4e17b92bffffc58e53d75507e712d074 Mon Sep 17 00:00:00 2001 From: davidsastresas Date: Tue, 17 Oct 2023 10:32:08 +0200 Subject: [PATCH] PhotoVideoControl.qml: Fix toggleShotting when no mavlink camera --- 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 558c3b19d05..c81b7b41a36 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 || _mavlinkCamera.capturesPhotos ) { + if (_mavlinkCamera && (_mavlinkCamera.capturesVideo || _mavlinkCamera.capturesPhotos) ) { if(_mavlinkCameraInVideoMode) { _mavlinkCamera.toggleVideo() } else {