 #define CBI(n, b) (n &= ~_BV(b))
 
 #define POINTS_COUNT 6
-#define PULSES_PER_MM 100
+#define PULSES_PER_MM 10
 #define CURVE_SECTION 0.5
 #define NUM_STEPS 20
 #define NUM_AXIS 2

void lockTimer()
{
    cli();
    // noInterrupts();
}
void unlockTimer()
{
    sei();
    // interrupts();
}
void setRun()
{

#endif
    addMotion(x, y, _sys.power, _sys.speed, _sys.acceleration);
}

bool hasCommand(char cmd)
{
    int index = 0;
    char c = 0;
    while (c != cmd)
    {
        if (index >= _sys.buffer.length())
        {
            return false;
        }
        else
        {
            c = _sys.buffer.charAt(index);
        }
        index++;
    }
    return true;
}
double getCommand(char cmd)
{
    int index = _sys.buffer.indexOf(cmd);
    int startIndex = _sys.buffer.indexOf(cmd) + 1;
    char c = 0;
    while (c != ' ')
    {
        index++;
        if (index >= _sys.buffer.length())
        {
            break;
        }
        else
        {
            c = _sys.buffer.charAt(index);
        }
    }
    return _sys.buffer.substring(startIndex, index).toDouble();
}