[libcamera-devel,v3,05/30] py: Fix None value in ControlType enum
diff mbox series

Message ID 20220527144447.94891-6-tomi.valkeinen@ideasonboard.com
State Accepted
Headers show
Series
  • More misc Python patches
Related show

Commit Message

Tomi Valkeinen May 27, 2022, 2:44 p.m. UTC
"None" is not a valid name for an enum value, so change it to "Null".

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 src/py/libcamera/py_enums.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox series

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)