mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 13:07:34 +08:00
motor_test: fixed build
this is C, not C++
This commit is contained in:
committed by
Lorenz Meier
parent
05c282e761
commit
9984555faa
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user