aboutsummaryrefslogtreecommitdiff
path: root/cyw43
diff options
context:
space:
mode:
Diffstat (limited to 'cyw43')
-rw-r--r--cyw43/Cargo.toml6
-rw-r--r--cyw43/src/bluetooth.rs8
2 files changed, 11 insertions, 3 deletions
diff --git a/cyw43/Cargo.toml b/cyw43/Cargo.toml
index 6d7647697..c4f5c0ebd 100644
--- a/cyw43/Cargo.toml
+++ b/cyw43/Cargo.toml
@@ -10,7 +10,7 @@ repository = "https://github.com/embassy-rs/embassy"
10documentation = "https://docs.embassy.dev/cyw43" 10documentation = "https://docs.embassy.dev/cyw43"
11 11
12[features] 12[features]
13defmt = ["dep:defmt", "heapless/defmt-03", "embassy-time/defmt", "bt-hci?/defmt", "embedded-io-async?/defmt-03"] 13defmt = ["dep:defmt", "heapless/defmt-03", "embassy-time/defmt", "bt-hci?/defmt", "embedded-io-async?/defmt"]
14log = ["dep:log"] 14log = ["dep:log"]
15bluetooth = ["dep:bt-hci", "dep:embedded-io-async"] 15bluetooth = ["dep:bt-hci", "dep:embedded-io-async"]
16 16
@@ -35,8 +35,8 @@ num_enum = { version = "0.5.7", default-features = false }
35heapless = "0.8.0" 35heapless = "0.8.0"
36 36
37# Bluetooth deps 37# Bluetooth deps
38embedded-io-async = { version = "0.6.0", optional = true } 38embedded-io-async = { version = "0.7.0", optional = true }
39bt-hci = { version = "0.6.0", optional = true } 39bt-hci = { git = "https://github.com/embassy-rs/bt-hci", rev = "51791fd4d422449dd0eca5ddead32886101215f7", optional = true }
40 40
41[package.metadata.embassy] 41[package.metadata.embassy]
42build = [ 42build = [
diff --git a/cyw43/src/bluetooth.rs b/cyw43/src/bluetooth.rs
index 332b7048d..256451fae 100644
--- a/cyw43/src/bluetooth.rs
+++ b/cyw43/src/bluetooth.rs
@@ -490,6 +490,14 @@ impl From<FromHciBytesError> for Error {
490 } 490 }
491} 491}
492 492
493impl core::fmt::Display for Error {
494 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
495 core::fmt::Debug::fmt(self, f)
496 }
497}
498
499impl core::error::Error for Error {}
500
493impl<'d> embedded_io_async::ErrorType for BtDriver<'d> { 501impl<'d> embedded_io_async::ErrorType for BtDriver<'d> {
494 type Error = Error; 502 type Error = Error;
495} 503}