   else
   if (cmd == 'V' || cmd == 'v') ver();
   else
-  if (cmd == 'P' || cmd == 'p') power();
-  else
-  if (cmd == 'S' || cmd == 's') settings();
+  if (cmd == 'P' || cmd == 'p') param();
   else
   if (cmd == 'B' || cmd == 'b') battery();
   else

  Serial.println("V2");
}

// power control command
// ex: PU - full shutdown (UPS shutdown)
void power()
{
  cmd = buf[1];
  if (cmd == 'A' || cmd == 'a') { digitalWrite(AUX_POWER_PIN, HIGH); delay(50); digitalWrite(AUX_POWER_PIN, LOW); delay(2000); digitalWrite(AUX_POWER_PIN, HIGH); delay(50); digitalWrite(AUX_POWER_PIN, LOW); }
  else
  if (cmd == 'M' || cmd == 'm') { digitalWrite(MOTOR_POWER_PIN, HIGH); delay(50); digitalWrite(MOTOR_POWER_PIN, LOW); }
  else
  if (cmd == 'U' || cmd == 'u') { digitalWrite(UPS_POWER_PIN, HIGH); delay(5500); digitalWrite(UPS_POWER_PIN, LOW); }
}

// 'settings' command
// ex: ST2500 - set timeout to 2500ms. 0 to disable
void settings()
{
  cmd = buf[1];
  // command timeout

#define RC_RX_PIN 12
#define RC_TX_PIN 11
RoboClaw roboclaw(RC_RX_PIN, RC_TX_PIN);

// common vars //
unsigned long lastCommandTime;
