[libcamera-devel] [PATCH v2 05/19] py: Fix None value in ControlType enum
Tomi Valkeinen
tomi.valkeinen at ideasonboard.com
Tue May 24 13:45:56 CEST 2022
"None" is not a valid name for an enum value, so change it to "Null".
Signed-off-by: Tomi Valkeinen <tomi.valkeinen at ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
src/py/libcamera/py_enums.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/py/libcamera/py_enums.cpp b/src/py/libcamera/py_enums.cpp
index e55318f1..96d4beef 100644
--- a/src/py/libcamera/py_enums.cpp
+++ b/src/py/libcamera/py_enums.cpp
@@ -22,7 +22,7 @@ void init_py_enums(py::module &m)
.value("Viewfinder", StreamRole::Viewfinder);
py::enum_<ControlType>(m, "ControlType")
- .value("None", ControlType::ControlTypeNone)
+ .value("Null", ControlType::ControlTypeNone)
.value("Bool", ControlType::ControlTypeBool)
.value("Byte", ControlType::ControlTypeByte)
.value("Integer32", ControlType::ControlTypeInteger32)
--
2.34.1
More information about the libcamera-devel
mailing list