From f3947f411f30122f1c4018ae7f70452275054986 Mon Sep 17 00:00:00 2001 From: Csaba Nagy Date: Fri, 10 Jul 2020 15:27:44 -0600 Subject: [PATCH] Fix aperature method --- src/BlueMagicCameraController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BlueMagicCameraController.cpp b/src/BlueMagicCameraController.cpp index 11797d2..cad3867 100644 --- a/src/BlueMagicCameraController.cpp +++ b/src/BlueMagicCameraController.cpp @@ -218,7 +218,7 @@ float BlueMagicCameraController::getZoom() void BlueMagicCameraController::aperture(float value) { - if (value < 0 && value > 1) + if (value < 0 || value > 1) return; uint16_t val = mapFloat(value);