From a07be010b633b93f1297a4ee2262006d8436d580 Mon Sep 17 00:00:00 2001 From: Ryan Summers Date: Wed, 25 Nov 2020 16:46:42 +0100 Subject: [PATCH] Adding comment about checking for flag pass completion --- src/dac.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dac.rs b/src/dac.rs index 89a31bf..d6325c2 100644 --- a/src/dac.rs +++ b/src/dac.rs @@ -205,6 +205,8 @@ impl Dac0Output { if self.first_transfer { self.first_transfer = false } else { + // Note: If a device hangs up, check that this conditional is passing correctly, as + // there is no time-out checks here in the interest of execution speed. while self.transfer.get_transfer_complete_flag() == false {} } @@ -299,6 +301,8 @@ impl Dac1Output { if self.first_transfer { self.first_transfer = false } else { + // Note: If a device hangs up, check that this conditional is passing correctly, as + // there is no time-out checks here in the interest of execution speed. while self.transfer.get_transfer_complete_flag() == false {} }