From a58e32fdfedb8283dd630ddb75ac0088258ec12c Mon Sep 17 00:00:00 2001 From: Peter McGoron Date: Thu, 11 May 2023 14:37:58 -0400 Subject: [PATCH] fix DAC hanging (similar issue to ADC hanging) --- software/src/access.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/software/src/access.c b/software/src/access.c index a6bf1f5..ae61a1f 100644 --- a/software/src/access.c +++ b/software/src/access.c @@ -62,7 +62,8 @@ dac_release(int dac) if (dac_locked[dac] == 1) { write_dac_arm(0, dac); - while (!read_dac_finished(dac)); + // TODO: Flush DAC? + // while (!read_dac_finished(dac)); } int e = k_mutex_unlock(dac_mutex + dac); @@ -145,7 +146,7 @@ adc_release(int adc) LOG_DBG("%s: in adc_release", get_thread_name()); if (adc_locked[adc] == 1) { write_adc_arm(0, adc); - // while (!read_adc_finished(adc)); + // TODO: flush ADC? } int e = k_mutex_unlock(adc_mutex + adc);