Skip to content

Commit

Permalink
PhotoVideoControl.qml: Fix toggleShotting when no mavlink camera
Browse files Browse the repository at this point in the history
  • Loading branch information
Davidsastresas committed Oct 17, 2023
1 parent c002ef6 commit f035a9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FlightMap/Widgets/PhotoVideoControl.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f035a9c

Please sign in to comment.