             if ( cf->peek() == '\n' || cf->peek() == '\r') {
                 cf->read() ;
             }
-            rtrim(pbuf) ;
+            mytrim(pbuf) ;
 
             if ( strlen(pbuf) > 0 || pnum != 0 ) setParam(pnum, pbuf) ;
             ccnt = 0  ;

   delay(500UL);

   // set freq and tones
   dra.setFreq(TXFREQ,RXFREQ);
   dra.setTXCTCSS(TXCTCSS);
   dra.setSquelch(SQUELCH);
   dra.setRXCTCSS(RXCTCSS);
   dra.setBW(BW); // 0 = 12.5k, 1 = 25k

   char fbuf[12] ;
   if ( dra.writeFreq() ) {
       dtostrf(TXFREQ, 8, 4, fbuf) ;
       sprintf(buf,"Freq TX:%s",fbuf) ;
       mylog.send(buf);
       dtostrf(RXFREQ, 8, 4, fbuf) ;
       sprintf(buf,"Freq RX:%s",fbuf) ;
       mylog.send(buf);
    } else {

        case 7:
            sdlog_write = (bool) atoi(buf) ;
            break ;
        case 8:
            txfreq =  atof(buf) ;
            break ;
        case 9:
            rxfreq =  atof(buf) ;
            break ;
        case 10:
            txctcss =  atoi(buf) ;
            break ;
        case 11:
            rxctcss =  atoi(buf) ;
            break ;
        case 12:
            volume =  atoi(buf) ;
            break ;
        case 13:
            squelch =  atoi(buf) ;
            break ;
        case 25:
            update_beacon_fixed =  atol(buf) ;
            break ;
        case 26:
            update_beacon_moving =  atol(buf) ;
            break ;
        case 0: 
            break ;
        default:
            break ;
    } 
} 


bool readConfig(File *cf) {

    int ccnt = 0 ;
    int pnum = 0 ;  
    char pbuf[50] ;
    char pnumbuf[10] ;

    bool pnmode = true ;
    bool cmode = false ;
