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, }