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

            continue ;
        }

        if (pnmode) {
            // if the parameter number is not found, then punt and ignore the line
            if ( ccnt > 5 ) {
                cmode = true ;
                cferror = true ; 
                pnmode = false ;

bool aprs_recv = APRS_RECV ;
bool notsosmart_beacon = NOTSOSMART_BEACON ; 
bool sdlog_write = SDLOG_WRITE ;
double txfreq = TXFREQ ;  
double rxfreq = RXFREQ ;
int txctcss = TXCTCSS ;
int rxctcss = RXCTCSS ;
int volume = VOL ;
int squelch = SQUELCH ;

unsigned long update_beacon = UPDATE_BEACON_INIT ;

unsigned long update_beacon_fixed = UPDATE_BEACON_FIXED ;
unsigned long update_beacon_moving = UPDATE_BEACON_MOVING ;

// set the outer beacon check loop to 30 seconds (do not change).
unsigned long update_check = 30000L ;
