Mercurial > hg > fxanalyse
diff FXAnalyse.c @ 226:c244a1ecb6c3
Log when dedrift is automatically stop
author | Daniele Nicolodi <daniele.nicolodi@obspm.fr> |
---|---|
date | Thu, 18 Sep 2014 18:50:16 +0200 |
parents | 7875436125dd |
children | a2f99632a80c |
line wrap: on
line diff
--- a/FXAnalyse.c Thu Sep 18 18:13:55 2014 +0200 +++ b/FXAnalyse.c Thu Sep 18 18:50:16 2014 +0200 @@ -1305,7 +1305,9 @@ (dedrift.threshold != 0.0) && (freq.previous != 0.0) && (fabs(f - freq.previous) > dedrift.threshold)) { - + + logmsg("dedrift stop: frequency jump detected"); + if (! dedrift.keep_slope) { dedrift.applied = 0.0; ad9956_set_sweep_rate_w(&ad9956, dedrift.applied);