Skip to content

Commit

Permalink
fix ci error
Browse files Browse the repository at this point in the history
  • Loading branch information
michelrandahl committed Aug 22, 2024
1 parent 0fc7dc5 commit ce6bb46
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions embassy-stm32/src/tsc/acquisition_banks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,15 +295,17 @@ impl BankGroupStatusMask {
}

#[allow(missing_docs)]
#[derive(Clone, Copy, defmt::Format, Debug)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug)]
pub struct BankGroupReading {
pub channel_reading: u16,
pub pin: TscIOPin,
}

/// Represents the readings from all TSC groups
#[allow(missing_docs)]
#[derive(Default, defmt::Format, Debug)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Default, Debug)]
pub struct BankGroupReadings {
pub g1: Option<BankGroupReading>,
pub g2: Option<BankGroupReading>,
Expand Down
3 changes: 2 additions & 1 deletion embassy-stm32/src/tsc/tsc_io_pin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ use super::types::Group;

/// Pin defines
#[allow(missing_docs)]
#[derive(PartialEq, Clone, Copy, defmt::Format, Debug)]
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(PartialEq, Clone, Copy, Debug)]
pub enum TscIOPin {
Group1Io1,
Group1Io2,
Expand Down
2 changes: 1 addition & 1 deletion examples/stm32u5/src/bin/tsc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#![no_main]

use defmt::*;
use embassy_stm32::{bind_interrupts, peripherals};
use embassy_stm32::tsc::{self, *};
use embassy_stm32::{bind_interrupts, peripherals};
use embassy_time::Timer;
use {defmt_rtt as _, panic_probe as _};

Expand Down

0 comments on commit ce6bb46

Please sign in to comment.