    if(!btSerial.available())
      return;
    char c = btSerial.read();
-   if(c == '\n' || c == '\r') { 
+   if(c == '\n' || c == '\r') {
      process_cmd();
      last_cmd_ms = ms;
    }


void setup()
{
  pinMode(PANEL_PIN, OUTPUT);  
  pinMode(RED_PIN, OUTPUT);  
  pinMode(GREEN_PIN, OUTPUT);  
  pinMode(BLUE_PIN, OUTPUT);  
  pinMode(SPEAKER_PIN, OUTPUT);
  digitalWrite(PANEL_PIN, LOW);
  digitalWrite(RED_PIN, LOW);
  digitalWrite(GREEN_PIN, LOW);
  digitalWrite(BLUE_PIN, LOW); 
  Serial.begin(115200);
  btSerial.begin(9600);
}

/*
 * The Space Probe firmware is a very thin stub program, which speaks a
 * simple serial command/response protocol.
 *
 * All numbers <X> are transmitted as 4-digit decimal integers, regardless of scale.
