From 6e5a86b6fe1ca8a998457c649af5ba94ebdcb680 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Wed, 21 Apr 2021 06:03:25 -0700 Subject: [PATCH] dshot:Matched signature to drv_pwm_output.h --- platforms/nuttx/src/px4/stm/stm32_common/dshot/dshot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platforms/nuttx/src/px4/stm/stm32_common/dshot/dshot.c b/platforms/nuttx/src/px4/stm/stm32_common/dshot/dshot.c index dbb5338623..01f5ea7b0f 100644 --- a/platforms/nuttx/src/px4/stm/stm32_common/dshot/dshot.c +++ b/platforms/nuttx/src/px4/stm/stm32_common/dshot/dshot.c @@ -1,6 +1,6 @@ /**************************************************************************** * - * Copyright (C) 2019 PX4 Development Team. All rights reserved. + * Copyright (C) 2019, 2021 PX4 Development Team. All rights reserved. * Author: Igor Misic * * Redistribution and use in source and binary forms, with or without @@ -234,7 +234,7 @@ static void dshot_motor_data_set(uint32_t motor_number, uint16_t throttle, bool motor_buffer[motor_number * ONE_MOTOR_BUFF_SIZE + DSHOT_END_OF_STREAM] = 0; } -void up_dshot_motor_data_set(uint32_t motor_number, uint16_t throttle, bool telemetry) +void up_dshot_motor_data_set(unsigned motor_number, uint16_t throttle, bool telemetry) { dshot_motor_data_set(motor_number, throttle + DShot_cmd_MIN_throttle, telemetry); }