Skip to content

Commit

Permalink
Use const-hex create instead of hex
Browse files Browse the repository at this point in the history
  • Loading branch information
zargony committed Dec 10, 2024
1 parent c30230a commit 8a6c55b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
14 changes: 12 additions & 2 deletions firmware/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion firmware/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ esp-partition-table = "0.1"
esp-println = { version = "0.12", features = ["esp32c3", "log"] }
esp-storage = { version = "0.4", features = ["esp32c3"] }
esp-wifi = { version = "0.11", default-features = false, features = ["esp32c3", "esp-alloc", "log", "wifi"] }
hex = { version = "0.4", default-features = false, features = ["alloc"] }
const-hex = { version = "1.14", default-features = false }
log = { version = "0.4", features = ["release_max_level_info"] }
pn532 = "0.4"
rand_core = "0.6"
Expand Down
2 changes: 1 addition & 1 deletion firmware/src/nfc.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// Use custom pn532 driver instead of pn532 crate
use crate::pn532;

use const_hex::FromHex;
use core::convert::Infallible;
use core::fmt::{self, Debug};
use core::str::FromStr;
use embassy_time::{Duration, Timer};
use embedded_hal_async::digital::Wait;
use embedded_hal_async::i2c::I2c;
use hex::FromHex;
use log::{debug, info, warn};
use pn532::{Error as Pn532Error, I2CInterfaceWithIrq, Pn532, Request, SAMMode};

Expand Down

0 comments on commit 8a6c55b

Please sign in to comment.