From b7c4858a1d897343b924e16164ddaf67ec8b3a9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Tue, 3 Aug 2021 09:44:11 +0000 Subject: [PATCH] revert to 16 byte dds profile ... as 32 pulls in a slow memclr in flash A case for MaybeUninit? --- ad9959/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ad9959/src/lib.rs b/ad9959/src/lib.rs index 3b11d4f..4c99732 100644 --- a/ad9959/src/lib.rs +++ b/ad9959/src/lib.rs @@ -536,7 +536,7 @@ impl DdsConfig { /// Represents a means of serializing a DDS profile for writing to a stream. pub struct ProfileSerializer { - data: [u8; 32], + data: [u8; 16], index: usize, mode: Mode, } @@ -549,7 +549,7 @@ impl ProfileSerializer { fn new(mode: Mode) -> Self { Self { mode, - data: [0; 32], + data: [0; 16], index: 0, } }