From 53930497e4a9523ac877538346472d9799fc2ca6 Mon Sep 17 00:00:00 2001 From: Astro Date: Wed, 13 May 2020 23:19:20 +0200 Subject: [PATCH] ad5680: fix MAX_VALUE --- src/ad5680.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ad5680.rs b/src/ad5680.rs index 74b62d1..cc75c95 100644 --- a/src/ad5680.rs +++ b/src/ad5680.rs @@ -15,7 +15,7 @@ pub const SPI_MODE: spi::Mode = spi::Mode { /// 30 MHz pub const SPI_CLOCK: MegaHertz = MegaHertz(30); -pub const MAX_VALUE: u32 = 0x20000; +pub const MAX_VALUE: u32 = 0x3FFFF; /// [AD5680](https://www.analog.com/media/en/technical-documentation/data-sheets/AD5680.pdf) DAC pub struct Dac, S: OutputPin> {