         _sys.plannedLength -= 1;
     }
 }
-void lockTimer()
-{
-    cli();
-}
-void unlockTimer()
-{
-    sei();
-}
-void setRun()
-{
-    _sys.running = true;
-}
-void setStop()
-{
-    _sys.running = false;
-}
 uint8_t isRunningState()
 {
     return _sys.isRunningState;

            case 4:
            {
                waitingForFinish();
                if (hasCommand('p'))
                {
                    firePower(getCommand('p'));
                }
                else
                {

    TCCR1A = 0;
    TCCR1B = 0;
    TCNT1 = 0;
    OCR1A = 100;
    TCCR1B |= (1 << WGM12);
    TCCR1B |= (1 << CS11);
    TIMSK1 |= (1 << OCIE1A);
    sei();
}
int tt = 0;
// ISR(TIMER1_COMPA_vect)
void motion()
{
    if (micros() - _sys.currentTime >= _sys.during)
    {
        // if (busy)
        // {
        //     return;
        // }
        // busy = true;
        run();
        // busy = false;
        _sys.currentTime = micros();
    }
}
void run()
{
