From b118ad0cec9d140a8aa916bf67488de974c58e66 Mon Sep 17 00:00:00 2001 From: hartytp Date: Fri, 13 Sep 2019 11:09:41 +0100 Subject: [PATCH 1/3] AD7172: fix typo in comment [NFC] --- firmware/src/ad7172/adc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/src/ad7172/adc.rs b/firmware/src/ad7172/adc.rs index ea1d4de..28467f3 100644 --- a/firmware/src/ad7172/adc.rs +++ b/firmware/src/ad7172/adc.rs @@ -25,7 +25,7 @@ impl, NSS: OutputPin> Adc { Ok(adc) } - /// `0x00DX` for AD7271-2 + /// `0x00DX` for AD7272-2 pub fn identify(&mut self) -> Result> { self.read_reg(&Id) .map(|id| id.id()) -- 2.42.0 From 34f09030e55d8deaf7a305a7e8104f9ea8abe019 Mon Sep 17 00:00:00 2001 From: hartytp Date: Fri, 13 Sep 2019 11:12:53 +0100 Subject: [PATCH 2/3] command_parser: fix typo --- firmware/src/command_parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/src/command_parser.rs b/firmware/src/command_parser.rs index f44f305..acdfd60 100644 --- a/firmware/src/command_parser.rs +++ b/firmware/src/command_parser.rs @@ -108,7 +108,7 @@ impl Command { )), Disable => Ok(Command::Channel( channel as u8, - ChannelCommand::Enable + ChannelCommand::Disable )), ] } -- 2.42.0 From fa2089b8a36ee540124b2e670dd21a3fceb54cf2 Mon Sep 17 00:00:00 2001 From: TPH Date: Fri, 13 Sep 2019 11:14:44 +0100 Subject: [PATCH 3/3] Revert "command_parser: fix typo" Keep PR to one issue at a time! This reverts commit 34f09030e55d8deaf7a305a7e8104f9ea8abe019. --- firmware/src/command_parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/src/command_parser.rs b/firmware/src/command_parser.rs index acdfd60..f44f305 100644 --- a/firmware/src/command_parser.rs +++ b/firmware/src/command_parser.rs @@ -108,7 +108,7 @@ impl Command { )), Disable => Ok(Command::Channel( channel as u8, - ChannelCommand::Disable + ChannelCommand::Enable )), ] } -- 2.42.0