Skip to content

Commit 22a008a

Browse files
fix workflow and clippy errors
1 parent 93e55d4 commit 22a008a

4 files changed

Lines changed: 41 additions & 126 deletions

File tree

.github/workflows/rust.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ jobs:
3939
- name: Clippy Devices
4040
run: |
4141
cd device
42-
echo Clippy $package
4342
for package in $(ls -d usb*); do
44-
(cd $package && cargo clippy -- --Dwarnings)
43+
echo Clippy $package
44+
(cd $package && cargo clippy -- -Dwarnings)
4545
done
4646
- name: Clippy Rust Host
4747
run: |

device/usb-bulk-stm32-nucleo-f429zi/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

device/usb-bulk-stm32-nucleo-u545re/Cargo.lock

Lines changed: 38 additions & 117 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

device/usb-bulk-stm32-nucleo-u545re/src/main.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ use embassy_futures::join::join;
88
use embassy_stm32::{
99
Config, bind_interrupts,
1010
peripherals::USB,
11-
time::Hertz,
1211
usb::{Driver, InterruptHandler},
1312
};
1413
use embassy_time::Timer;
@@ -46,11 +45,6 @@ async fn main(_spawner: Spawner) {
4645
// make sure you provide the `config` parameter here instead of `Default::default()`
4746
let peripherals = embassy_stm32::init(config);
4847

49-
let mut ep_out_buffer = [0u8; 256];
50-
// let mut config = embassy_stm32::usb::Config::default();
51-
52-
// config.vbus_detection = false;
53-
5448
let driver = Driver::new(peripherals.USB, Irqs, peripherals.PA12, peripherals.PA11);
5549

5650
// Create embassy-usb Config

0 commit comments

Comments
 (0)