logger.fine("Write motor 2 configuration."); //$NON-NLS-1$
MessageHandler.writeMotorConfiguration(device, motor2Configuration);
}
logger.fine("Start motors."); //$NON-NLS-1$
USIResponse message = MessageHandler.writeStartMotors(device);
if (message instanceof MotorSwitchStatus)
handleMotorSwitchPosition((MotorSwitchStatus) message);
else
throw new ProtocolException(
getLocalizedMessage(
"error.unexpectedMessage", //$NON-NLS-1$
ControlCharacter.SWITCH_POSITIONS,
message.getControlCharacter()));
}