diff options
Diffstat (limited to 'cyw43')
| -rw-r--r-- | cyw43/Cargo.toml | 6 | ||||
| -rw-r--r-- | cyw43/src/bluetooth.rs | 8 |
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" | |||
| 10 | documentation = "https://docs.embassy.dev/cyw43" | 10 | documentation = "https://docs.embassy.dev/cyw43" |
| 11 | 11 | ||
| 12 | [features] | 12 | [features] |
| 13 | defmt = ["dep:defmt", "heapless/defmt-03", "embassy-time/defmt", "bt-hci?/defmt", "embedded-io-async?/defmt-03"] | 13 | defmt = ["dep:defmt", "heapless/defmt-03", "embassy-time/defmt", "bt-hci?/defmt", "embedded-io-async?/defmt"] |
| 14 | log = ["dep:log"] | 14 | log = ["dep:log"] |
| 15 | bluetooth = ["dep:bt-hci", "dep:embedded-io-async"] | 15 | bluetooth = ["dep:bt-hci", "dep:embedded-io-async"] |
| 16 | 16 | ||
| @@ -35,8 +35,8 @@ num_enum = { version = "0.5.7", default-features = false } | |||
| 35 | heapless = "0.8.0" | 35 | heapless = "0.8.0" |
| 36 | 36 | ||
| 37 | # Bluetooth deps | 37 | # Bluetooth deps |
| 38 | embedded-io-async = { version = "0.6.0", optional = true } | 38 | embedded-io-async = { version = "0.7.0", optional = true } |
| 39 | bt-hci = { version = "0.6.0", optional = true } | 39 | bt-hci = { git = "https://github.com/embassy-rs/bt-hci", rev = "51791fd4d422449dd0eca5ddead32886101215f7", optional = true } |
| 40 | 40 | ||
| 41 | [package.metadata.embassy] | 41 | [package.metadata.embassy] |
| 42 | build = [ | 42 | build = [ |
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 | ||
| 493 | impl 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 | |||
| 499 | impl core::error::Error for Error {} | ||
| 500 | |||
| 493 | impl<'d> embedded_io_async::ErrorType for BtDriver<'d> { | 501 | impl<'d> embedded_io_async::ErrorType for BtDriver<'d> { |
| 494 | type Error = Error; | 502 | type Error = Error; |
| 495 | } | 503 | } |
