From db14bd8e5cafce22c32a8366ee7f09250e0cbb58 Mon Sep 17 00:00:00 2001 From: atse Date: Thu, 18 Jan 2024 14:12:19 +0800 Subject: [PATCH] channels: remove redundant pub --- src/channels.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/channels.rs b/src/channels.rs index f32a939..e230f0a 100644 --- a/src/channels.rs +++ b/src/channels.rs @@ -24,7 +24,7 @@ use crate::{ }; pub const CHANNELS: usize = 2; -pub const R_SENSE: f64 = 0.05; +const R_SENSE: f64 = 0.05; // DAC chip outputs 0-5v, which is then passed through a resistor dividor to provide 0-3v range const DAC_OUT_V_MAX: f64 = 3.0; @@ -35,7 +35,7 @@ pub struct Channels<'a> { pub adc: ad7172::Adc, /// stm32f4 integrated adc pins_adc: pins::PinsAdc, - pub pwm: pins::PwmPins, + pwm: pins::PwmPins, hwrev: &'a hw_rev::HWRev, }