mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-17 17:35:06 +03:00
libcamera: controls: Use ASSERT() instead of assert()
The ASSERT() macro integrates with the logging infrastructure, use it to replace assert(). Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
8cbda75a8d
commit
46b32fa0e4
1 changed files with 1 additions and 1 deletions
|
@ -527,7 +527,7 @@ ControlInfo::ControlInfo(Span<const ControlValue> values,
|
||||||
ControlInfo::ControlInfo(std::set<bool> values, bool def)
|
ControlInfo::ControlInfo(std::set<bool> values, bool def)
|
||||||
: min_(false), max_(true), def_(def), values_({ false, true })
|
: min_(false), max_(true), def_(def), values_({ false, true })
|
||||||
{
|
{
|
||||||
assert(values.count(def) && values.size() == 2);
|
ASSERT(values.count(def) && values.size() == 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue