ACM: use set_blocking_writes(false) when we arm motors

This commit is contained in:
Andrew Tridgell 2012-03-30 17:05:44 +11:00
parent 08b66e18b7
commit 0985327331
1 changed files with 8 additions and 0 deletions

View File

@ -75,6 +75,14 @@ static void init_arm_motors()
gcs_send_text_P(SEVERITY_HIGH, PSTR("ARMING MOTORS"));
#endif
// we don't want writes to the serial port to cause us to pause
// mid-flight, so set the serial ports non-blocking once we arm
// the motors
Serial.set_blocking_writes(false);
if (gcs3.initialised) {
Serial3.set_blocking_writes(false);
}
motor_armed = true;
#if PIEZO_ARMING == 1