mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 08:01:36 +08:00
vtol remove Wno-write-strings
This commit is contained in:
committed by
Lorenz Meier
parent
4e26c7fcd4
commit
3d1713f79e
@@ -433,10 +433,12 @@ void Tiltrotor::set_rear_motor_state(rear_motor_state state)
|
||||
|
||||
int ret;
|
||||
unsigned servo_count;
|
||||
char *dev = PWM_OUTPUT0_DEVICE_PATH;
|
||||
const char *dev = PWM_OUTPUT0_DEVICE_PATH;
|
||||
int fd = px4_open(dev, 0);
|
||||
|
||||
if (fd < 0) {PX4_WARN("can't open %s", dev);}
|
||||
if (fd < 0) {
|
||||
PX4_WARN("can't open %s", dev);
|
||||
}
|
||||
|
||||
ret = px4_ioctl(fd, PWM_SERVO_GET_COUNT, (unsigned long)&servo_count);
|
||||
struct pwm_output_values pwm_max_values;
|
||||
|
||||
Reference in New Issue
Block a user