       alphaSigned = 0;
     }
   }
-    // If not in Serial control overwrite the value 
+  // If not in Serial control overwrite the value 
   if (false == isSerialControl)
   {
     // Compute the value corresponding to the deadband

double deadBand = 0.1; // Use to ensure zero speed. Should not be zero
double serialFrequency = 0;
long lastSerialInputTime = 0;

void setup()
{
  // Initialize software serial communication with Sabertooth 
  SWSerial.begin(9600);
  // Initialize serial communications at 9600 bps:
  Serial.begin(9600); 
}

void serialEvent() {
  Serial.flush();
  while (Serial.available()) {
    // Get the new byte:

  {
    isSerialControl = false;
  }

  // Fallback to manual control if the analog voltage is close to zero (probably unplugged)
  // Place after hardware limit if possible
  // This avoids to go to full speed if one cable in the potentiometer is unplugged
