Skip to content

Commit 2e2d4af

Browse files
ubiedafabiobaltieri
authored andcommitted
afbr-s50: Remove asserts from driver
Run-time errors can still be considered asserts if checkif is configured as such, otherwise, prevent crashing. Signed-off-by: Luis Ubieda <[email protected]>
1 parent f64009b commit 2e2d4af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/sensor/broadcom/afbr_s50/afbr_s50.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ static status_t data_ready_callback(status_t status, argus_hnd_t *hnd)
153153
*/
154154
err = afbr_s50_platform_get_by_hnd(hnd, &platform);
155155
CHECKIF(err) {
156-
__ASSERT(false, "Failed to get platform data SQE response can't be sent");
156+
LOG_ERR("Failed to get platform data SQE response can't be sent");
157157
return ERROR_FAIL;
158158
}
159159

0 commit comments

Comments
 (0)