mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
tests/driver_motor_driver: fix NDEBUG compile problem
This commit is contained in:
parent
08706e771e
commit
83f1537562
@ -21,9 +21,10 @@
|
||||
#include <string.h>
|
||||
|
||||
/* RIOT includes */
|
||||
#include <log.h>
|
||||
#include <motor_driver.h>
|
||||
#include <xtimer.h>
|
||||
#include "log.h"
|
||||
#include "motor_driver.h"
|
||||
#include "test_utils/expect.h"
|
||||
#include "xtimer.h"
|
||||
|
||||
/* set interval to 20 milli-second */
|
||||
#define INTERVAL (3000 * US_PER_MS)
|
||||
@ -78,7 +79,7 @@ void motion_control(void)
|
||||
if (ret) {
|
||||
LOG_ERROR("motor_driver_init failed with error code %d\n", ret);
|
||||
}
|
||||
assert(ret == 0);
|
||||
expect(ret == 0);
|
||||
|
||||
for (;;) {
|
||||
/* BRAKE - duty cycle 100% */
|
||||
|
Loading…
Reference in New Issue
Block a user