tests/candev: fix compilation with NDEBUG
This commit is contained in:
parent
8c044c0163
commit
ff4641ec36
@ -29,6 +29,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "shell.h"
|
#include "shell.h"
|
||||||
|
#include "test_utils/expect.h"
|
||||||
#include "can/device.h"
|
#include "can/device.h"
|
||||||
|
|
||||||
#if IS_USED(MODULE_PERIPH_CAN)
|
#if IS_USED(MODULE_PERIPH_CAN)
|
||||||
@ -220,7 +221,7 @@ int main(void)
|
|||||||
/* add initialization for other candev drivers here */
|
/* add initialization for other candev drivers here */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
assert(candev);
|
expect(candev);
|
||||||
|
|
||||||
candev->event_callback = _can_event_callback;
|
candev->event_callback = _can_event_callback;
|
||||||
candev->isr_arg = NULL;
|
candev->isr_arg = NULL;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user