   
   Serial.println();
 
-  current_buffer[0] = 0;//'\0';
+  current_buffer[0] = 0;
   is_command_running = 0;
 }
 //--------------------------------------------------------------------------------------------

#include "Ultrasonic.h"

Ultrasonic ultrasonic(53,52);
t_motors_control motor_control;

char is_command_running;


  
// run motors
  bool is_one_motor_running = false;
  for (int m = 0; m < motors_control.num_motors; m++)
    if (motors_control.steppers[m]->distanceToGo()){
      motors_control.steppers[m]->run();
      is_one_motor_running = true;
    }
    else{
      motors_control.steppers[m]->setCurrentPosition(0);
    }
  if (!is_one_motor_running)
    is_command_running = 0;
