Commits

lexaficus  committed 04e596d

[svn r489]

  • Participants
  • Parent commits da231cb

Comments (0)

Files changed (1)

File src/QlfSMD.cpp

 {
 	write("GE\n");
 	QByteArray buf = readLine();
-	if (buf == "GED")
+	qDebug() << "State" << buf;
+	if (buf == "GED\n")
 		return MotorDisable;
-	if (buf == "GER")
+	if (buf == "GER\n")
 		return MotorRotating;
-	if (buf == "GES")
+	if (buf == "GES\n")
 		return MotorStoped;
 	return UnknownState;
 }
 QlfSMD::Direction QlfSMD::getDirection()
 {
 	write("GD\n");
-	if (readLine() == "GDF")
+	if (readLine() == "GDF\n")
 		return CW;
 	return CCW;
 }