From 9984555faa2ec18dc833d1f272dc3fbfa89a41e0 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 12 Apr 2016 18:47:46 +1000 Subject: [PATCH] motor_test: fixed build this is C, not C++ --- src/systemcmds/motor_test/motor_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/systemcmds/motor_test/motor_test.c b/src/systemcmds/motor_test/motor_test.c index 3581c2004b..a1175c289f 100644 --- a/src/systemcmds/motor_test/motor_test.c +++ b/src/systemcmds/motor_test/motor_test.c @@ -59,7 +59,7 @@ __EXPORT int motor_test_main(int argc, char *argv[]); static void motor_test(unsigned channel, float value); static void usage(const char *reason); -static orb_advert_t _test_motor_pub = nullptr; +static orb_advert_t _test_motor_pub = NULL; void motor_test(unsigned channel, float value) { @@ -69,7 +69,7 @@ void motor_test(unsigned channel, float value) _test_motor.timestamp = hrt_absolute_time(); _test_motor.value = value; - if (_test_motor_pub != nullptr) { + if (_test_motor_pub != NULL) { /* publish test state */ orb_publish(ORB_ID(test_motor), _test_motor_pub, &_test_motor);