Return position with 1 decimal place.

v1
Agis Zisimatos 2015-01-07 00:30:59 +02:00
parent 5f63e613a3
commit bd36fbfabc
1 changed files with 3 additions and 2 deletions

View File

@ -174,10 +174,11 @@ void cmd_proc(int &stepAz, int &stepEl)
{
/* Get position */
Serial.print("AZ");
Serial.print(step2deg(AZstepper.currentPosition()));
Serial.print(step2deg(AZstepper.currentPosition()), 1);
Serial.print(" ");
Serial.print("EL");
Serial.println(step2deg(ELstepper.currentPosition()));
Serial.print(step2deg(ELstepper.currentPosition()), 1);
Serial.println(" ");
}
else
{