Skip to content

Commit

Permalink
add missing mut to adc
Browse files Browse the repository at this point in the history
  • Loading branch information
Univa committed May 25, 2024
1 parent 1ad9d6b commit 9b8c086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rumcake/src/hw/mcu/stm32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ impl<'a, ADC: Instance, const MP: usize, const C: usize> AdcSampler<'a, ADC, MP,
idx_to_pin_type: [AnalogPinType<'a, MP>; C],
analog_pins: [AnyAdcChannel<ADC>; C],
) -> Self {
let adc = Adc::new(adc, irq);
let mut adc = Adc::new(adc, irq);
adc.set_sample_time(SampleTime::CYCLES1_5);

Self {
Expand Down

0 comments on commit 9b8c086

Please sign in to comment.