From ca02d58fa757eb1be3223fabae430d11188e8d5e Mon Sep 17 00:00:00 2001 From: roncarr880 Date: Fri, 14 Jun 2019 08:47:03 -0400 Subject: [PATCH] Add files via upload --- QRP_LABS_WSPR.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/QRP_LABS_WSPR.ino b/QRP_LABS_WSPR.ino index 45ddeb7..c93304d 100644 --- a/QRP_LABS_WSPR.ino +++ b/QRP_LABS_WSPR.ino @@ -552,16 +552,16 @@ static int8_t time_trend; // a change of +-100 is 1hz change uint8_t changed; static uint8_t holdoff; - if( holdoff < 250 ){ + if( holdoff < 180 ){ ++holdoff; return; } if( wspr_tx_enable ) return; // ignore this when transmitting changed = 0; - time_trend += val; // val : add or sub for correct correction? - if( time_trend > 10 ) clock_freq -= 5, changed = 1; - if( time_trend < -10 ) clock_freq += 5, changed = 1; + time_trend -= val; // !!! val : add or sub for correct correction? + if( time_trend > 10 ) clock_freq -= 16, changed = 1; // 10,16 gives max 1hz/hr change + if( time_trend < -10 ) clock_freq += 16, changed = 1; if( changed ){ // set new dividers for the new master clock freq value to take effect time_trend = 0;