 {
   byte i = 0;
   while (i < str_length){
-    if (current_buffer[i] >= 'A' && current_buffer[i] <= 'Z' || current_buffer[i] >= 'a' && current_buffer[i] <= 'z'){
+    if (tmp_str[i] >= 'A' && tmp_str[i] <= 'Z' || tmp_str[i] >= 'a' && tmp_str[i] <= 'z'){
       if (tmp_str[i] == 'M' || tmp_str[i] == 'm'){// moves motor
         int motor_index, num_steps;
         sscanf(tmp_str + i + 1, "%d%d", &motor_index, &num_steps);

              tmp_str[j - i] = 0;

              #ifdef DEBUG
                Serial.write("current command is=");
                Serial.write(tmp_str);
                Serial.println();


char is_command_running;

char firmware_version[] = "2015.12.19.1";// year.month.day.built number

char current_buffer[65];

