Mercurial > hg > fxanalyse
diff FXAnalyse.c @ 184:12df3a2b18de
Do not reset dedrift DDS at program initialization
author | Daniele Nicolodi <daniele.nicolodi@obspm.fr> |
---|---|
date | Fri, 21 Feb 2014 18:42:30 +0100 |
parents | 791ca26fee6a |
children | 89e092681ba7 |
line wrap: on
line diff
--- a/FXAnalyse.c Fri Feb 21 18:42:30 2014 +0100 +++ b/FXAnalyse.c Fri Feb 21 18:42:30 2014 +0100 @@ -433,7 +433,7 @@ return -1; // dedrift DDS - DDSFox_Initialize(&DDS1xAD9956, host, port, dedrift.freq0); + DDSFox_Init(&DDS1xAD9956, host, port); // AD9912 configuration parameters rv = Ini_GetStringIntoBuffer(configuration, "AD9912", "host", host, sizeof(host)); @@ -1952,10 +1952,7 @@ dedrift.applied = 0.0; SetCtrlVal(panel, PANEL_SLOPE_APPLIED, dedrift.applied); // reset DDS - DDSFox_Reset(&DDS1xAD9956); - DDSFox_SetProfile(&DDS1xAD9956); - DDSFox_SetDiv(&DDS1xAD9956, 1); - DDSFox_Set(&DDS1xAD9956, dedrift.freq0, 0.0); + DDSFox_Reset(&DDS1xAD9956, dedrift.freq0); break; } return 0;