Skip to content

Commit

Permalink
Fix docs for esp32
Browse files Browse the repository at this point in the history
  • Loading branch information
playfulFence committed Jul 1, 2024
1 parent 7dc0cb4 commit 878c859
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion esp-hal/src/rng.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ impl rand_core::RngCore for Rng {
/// let mut rng = trng.downgrade();
///
/// // ADC is available now
/// let analog_pin = io.pins.gpio3;
#[cfg_attr(esp32, doc = "let analog_pin = io.pins.gpio32;")]
#[cfg_attr(not(esp32), doc = "let analog_pin = io.pins.gpio3;")]
/// let mut adc1_config = AdcConfig::new();
/// let mut adc1_pin = adc1_config.enable_pin(analog_pin,
/// Attenuation::Attenuation11dB); let mut adc1 =
Expand Down

0 comments on commit 878c859

Please sign in to comment.