Skip to content

Commit

Permalink
Merge pull request #872 from andrewdavidmackenzie/porky_fixes
Browse files Browse the repository at this point in the history
porky_fixes
  • Loading branch information
andrewdavidmackenzie authored Feb 21, 2025
2 parents 621707e + a6e8ccf commit 17353cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions porky/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@ all: build build-w build2 build-w2
clean:
cargo clean

# Install required rust targets
targets:
rustup target add thumbv8m.main-none-eabihf

.PHONY: features
features:
cargo build-all-features --target thumbv6m-none-eabi
cargo build-all-features --target thumbv6m-none-eabi

clippy:
cargo clippy --target thumbv6m-none-eabi --features "usb, wifi, pico1"
Expand Down
4 changes: 3 additions & 1 deletion porky/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ fn generate_ssid(filename: &str, ssid: Option<SsidSpec>) -> io::Result<()> {

file.write_all(
b"\
#[allow(unused_imports)] \n
use heapless::String;\n
use pigdef::description::SsidSpec;\n\
use pigdef::description::SsidSpec;\n
#[allow(unused_imports)]\n
use core::str::FromStr;\n",
)?;

Expand Down

0 comments on commit 17353cd

Please sign in to comment.