   switch(cmd_buf[0]) {
      case 'L': // set LEDs
        sscanf(&cmd_buf[1], "%04d,%04d,%04d,%04d,%04d", &red, &green, &blue, &on_duty, &off_duty);
-       Serial.println("Got new LED settings");   
+       Serial.println("Got new LED settings");
        btSerial.println("OK");
        break;
-       
+
      case 'D': // set Dial
        sscanf(&cmd_buf[1], "%04d", &arg);
        Serial.print("Setting dial to ");

       stop_beep_ms = millis() + arg;
       btSerial.println("OK");
       break;
       
     case 'K': // read knob pos
       char resp[5];
       snprintf(resp, 5, "%04d", knob_pos);
       btSerial.println(resp);
       break;
       
     case 'P': // ping!
       btSerial.println("OK");
       break;
       
      default:
        Serial.println("Got garbage command!");
        Serial.println(cmd_buf);
   }  
   memset(cmd_buf, 0, cmd_buf_len);
}

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