sensing: Fix static assert in get_sensor_by_dev()
With assert condition set to true, assertion never happens. Change __ASSERT(true) to __ASSERT(false). Signed-off-by: Dmitry Lukyantsev <dmitrylu@meta.com>
This commit is contained in:
parent
ac5cdcdb8a
commit
d46546e2d8
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ static inline struct sensing_sensor *get_sensor_by_dev(const struct device *dev)
|
|||
}
|
||||
}
|
||||
|
||||
__ASSERT(true, "device %s is not a sensing sensor", dev->name);
|
||||
__ASSERT(false, "device %s is not a sensing sensor", dev->name);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue