           dctime -= dclick_step;
           if (dctime < MinDClickTime)
             dctime = MinDClickTime;
-#ifdef DEBUG
+#if (DEBUG > 1)
           Serial.printf(F("doubleclick_action: vfo_RLeft, after dctime=%d\n"), dctime);
 #endif
           break;

    
    if (ch == COMMAND_END_CHAR)   // if end of command, execute it
    {
      CommandBuffer[CommandIndex] = '\0';
      Serial.printf(F("%s;\n"), do_external_cmd(CommandBuffer, CommandIndex-1));
      CommandIndex = 0;
    }
  }

//     MG;
//----------------------------------------

const char * xcmd_mode(char *answer, char *cmd)
{
  if (strlen(cmd) != 3)
    return "ERROR";

  switch (cmd[1])
  {
    case 'G':
      // return VFO status
      if (VfoMode == vfo_Standby)
        return "STANDBY";
      if (VfoMode == vfo_Online)
        return "ONLINE";
      break;
    case 'O':
      // set ONLINE mode
      VfoMode = vfo_Online;
      vfo_display_mode();
      return "OK";
    case 'S':
      // set 'standby' mode
      VfoMode = vfo_Standby;
      vfo_display_mode();
      return "OK";
  }
  
  return "ERROR";
