py: Fix None value in ControlType enum
"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> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
committed by
Laurent Pinchart
parent
0381b09f89
commit
ccfcf5f235
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user