Skip to content
Snippets Groups Projects
Commit 4c99f3e6 authored by Gabriel Fedel's avatar Gabriel Fedel :speech_balloon: Committed by Gabriel Fedel
Browse files

aux-ch: Fix issue on XAxis when channel is disabled in 'ON' state

When enable/enable-transf is changed XAxis should be updated, otherwise
it could be wrong.
parent 986a9b3d
No related branches found
No related tags found
No related merge requests found
......@@ -568,6 +568,10 @@ ndsStatus sis8300llrfAuxChannel::setAUXEnableTransf(
_EnableTransf = value;
doCallbacksInt32(_EnableTransf, _interruptIdAUXEnableTransf);
//Should define XAxis again if the transf was enabled
if (_EnableTransf == 1)
_XAxisChanged = 1;
return ndsSuccess;
}
......@@ -628,7 +632,7 @@ ndsStatus sis8300llrfAuxChannel::commitParameters() {
return ndsSuccess;
}
//if decimation or number of samples to be aquired changed, update XAxis on next pulse
if (_ParamChanges[aux_param_dec_enable] || _ParamChanges[aux_param_dec_factor] || _ParamChanges[aux_param_samples_cnt])
if (_ParamChanges[aux_param_dec_enable] || _ParamChanges[aux_param_dec_factor] || _ParamChanges[aux_param_samples_cnt] || _ParamChanges[aux_param_enable])
_XAxisChanged = 1;
return writeToHardware();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment