AP_Camera: delete \n from the log using gcs().send_text

This commit is contained in:
murata 2018-02-01 22:02:46 +09:00 committed by Randy Mackay
parent c13d6580ae
commit 5b3a402d36

View File

@ -372,18 +372,18 @@ void AP_Camera::setup_feedback_callback(void)
int fd = open("/dev/px4fmu", 0);
if (fd != -1) {
if (ioctl(fd, PWM_SERVO_SET_MODE, PWM_SERVO_MODE_3PWM1CAP) != 0) {
gcs().send_text(MAV_SEVERITY_WARNING, "Camera: unable to setup 3PWM1CAP\n");
gcs().send_text(MAV_SEVERITY_WARNING, "Camera: unable to setup 3PWM1CAP");
close(fd);
goto failed;
}
if (up_input_capture_set(3, _feedback_polarity==1?Rising:Falling, 0, capture_callback, this) != 0) {
gcs().send_text(MAV_SEVERITY_WARNING, "Camera: unable to setup timer capture\n");
gcs().send_text(MAV_SEVERITY_WARNING, "Camera: unable to setup timer capture");
close(fd);
goto failed;
}
close(fd);
_timer_installed = true;
gcs().send_text(MAV_SEVERITY_WARNING, "Camera: setup fast trigger capture\n");
gcs().send_text(MAV_SEVERITY_WARNING, "Camera: setup fast trigger capture");
}
}
failed: