 
 void setup()
 {
+#if DEBUG
     Serial.begin(38400);
+#endif
 
     // Set motor pins as outputs
     pinMode(8, OUTPUT); 

            delay(d);
            duration -= d;
            t += d;
        }
        if (cmds[i].motor == 0)
            digitalWrite(8, LOW);

    vsnprintf(buffer, MAX, fmt, va);
    va_end (va);
    Serial.print(buffer);
#endif
}

// ---------------------------------------------
// TSB driver code
