Skip to content

Commit 3e0e2a0

Browse files
committed
typos, some (2-3) possible bugs
1 parent 4f4fa16 commit 3e0e2a0

File tree

25 files changed

+49
-74
lines changed

25 files changed

+49
-74
lines changed

examples/apps/Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@ bt-hci = { version = "0.6" }
1010
embassy-futures = "0.1.1"
1111
embassy-sync = { version = "0.7" }
1212
embassy-time = "0.5"
13-
#embedded-hal = "1.0"
1413
embedded-hal-async = "1.0"
1514
static_cell = "2"
16-
#embedded-io = "0.6"
1715
heapless = "0.9"
1816
rand_core = { version = "0.6", default-features = false }
1917

@@ -30,8 +28,6 @@ defmt = [
3028
"dep:defmt",
3129
"trouble-host/defmt",
3230
"bt-hci/defmt",
33-
#"embedded-io/defmt-03",
34-
#"embedded-hal/defmt-03"
3531
]
3632
log = [
3733
"dep:log",

examples/apps/src/ble_beacon.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// A beacon is a device that advertises packets that are constantly being
44
// updated to reflect the current state of the device, but usually does not
5-
// accept any conections. This allows broadcasting device information.
5+
// accept any connections. This allows broadcasting device information.
66
//
77

88
use bt_hci::cmd::le::*;

examples/nrf52/Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,9 @@ debug = 2
3434

3535
[patch.crates-io]
3636
#embassy-executor = {path = "../../../embassy/embassy-executor"}
37-
#embassy-time-queue-utils = {path = "../../../embassy/embassy-time-queue-utils"}
3837
#embassy-sync = {path = "../../../embassy/embassy-sync"}
3938
#embassy-futures = {path = "../../../embassy/embassy-futures"}
4039
#embassy-time = {path = "../../../embassy/embassy-time"}
41-
#embassy-time-driver = {path = "../../../embassy/embassy-time-driver"}
42-
#embassy-embedded-hal = {path = "../../../embassy/embassy-embedded-hal"}
43-
#embassy-hal-internal = {path = "../../../embassy/embassy-hal-internal"}
4440
nrf-sdc = { git = "https://github.com/alexmoon/nrf-sdc.git", rev = "11d5c3c"}
4541
nrf-mpsl = { git = "https://github.com/alexmoon/nrf-sdc.git", rev = "11d5c3c"}
4642
#bt-hci = { git = "https://github.com/embassy-rs/bt-hci.git", rev = "83a9e179ff019ed60abb73705f54383f89fc60fc" }

examples/rp-pico-2-w/Cargo.toml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,9 @@ debug = 2
3939

4040
[patch.crates-io]
4141
#embassy-executor = {path = "../../../embassy/embassy-executor"}
42-
#embassy-nrf = {path = "../../../embassy/embassy-nrf"}
4342
#embassy-sync = {path = "../../../embassy/embassy-sync"}
4443
#embassy-futures = {path = "../../../embassy/embassy-futures"}
4544
#embassy-time = {path = "../../../embassy/embassy-time"}
46-
#embassy-time-driver = {path = "../../../embassy/embassy-time-driver"}
47-
#embassy-embedded-hal = {path = "../../../embassy/embassy-embedded-hal"}
48-
#embassy-hal-internal = {path = "../../../embassy/embassy-hal-internal"}
49-
#nrf-sdc = { path = "../../../nrf-sdc/nrf-sdc" }
50-
#nrf-mpsl = { path = "../../../nrf-sdc/nrf-mpsl" }
51-
#bt-hci = { path = "../../../bt-hci" }
5245
cyw43 = { git = "https://github.com/embassy-rs/embassy.git", rev = "faacad613ea26a28de216cf32ac4cc64f7862d4c" }
5346
embassy-time = { git = "https://github.com/embassy-rs/embassy.git", rev = "faacad613ea26a28de216cf32ac4cc64f7862d4c" }
5447
embassy-time-driver = { git = "https://github.com/embassy-rs/embassy.git", rev = "faacad613ea26a28de216cf32ac4cc64f7862d4c" }

examples/rp-pico-w/Cargo.toml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ debug = 2
4141
#embassy-sync = {path = "../../../embassy/embassy-sync"}
4242
#embassy-futures = {path = "../../../embassy/embassy-futures"}
4343
#embassy-time = {path = "../../../embassy/embassy-time"}
44-
#embassy-time-driver = {path = "../../../embassy/embassy-time-driver"}
45-
#embassy-embedded-hal = {path = "../../../embassy/embassy-embedded-hal"}
46-
#embassy-hal-internal = {path = "../../../embassy/embassy-hal-internal"}
4744
#cyw43 = {path = "../../../embassy/cyw43"}
4845
#cyw43-pio = {path = "../../../embassy/cyw43-pio"}
4946
cyw43 = { git = "https://github.com/embassy-rs/embassy.git", rev = "faacad613ea26a28de216cf32ac4cc64f7862d4c" }
@@ -54,7 +51,3 @@ embassy-rp = { git = "https://github.com/embassy-rs/embassy.git", rev = "faacad6
5451
cyw43-pio = { git = "https://github.com/embassy-rs/embassy.git", rev = "faacad613ea26a28de216cf32ac4cc64f7862d4c" }
5552
embassy-sync = { git = "https://github.com/embassy-rs/embassy.git", rev = "faacad613ea26a28de216cf32ac4cc64f7862d4c" }
5653
embassy-futures = { git = "https://github.com/embassy-rs/embassy.git", rev = "faacad613ea26a28de216cf32ac4cc64f7862d4c" }
57-
#nrf-sdc = { path = "../../../nrf-sdc/nrf-sdc" }
58-
#nrf-mpsl = { path = "../../../nrf-sdc/nrf-mpsl" }
59-
#bt-hci = { path = "../../../bt-hci" }
60-
#bt-hci = { git = "https://github.com/embassy-rs/bt-hci.git", rev = "83a9e179ff019ed60abb73705f54383f89fc60fc" }

host-macros/src/ctxt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ impl Ctxt {
3131
}
3232
}
3333

34-
/// Add an error to the context object with a tokenenizable object.
34+
/// Add an error to the context object with a tokenizable object.
3535
///
3636
/// The object is used for spanning in error messages.
3737
pub fn error_spanned_by<A: ToTokens, T: Display>(&self, obj: A, msg: T) {

host/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ embassy-sync = "0.7"
2626
embassy-time = "0.5"
2727
embassy-futures = "0.1"
2828
futures = { version = "0.3", default-features = false }
29-
heapless = "0.9"
29+
heapless = "0.9" # "gatt", "security"
3030
trouble-host-macros = { path = "../host-macros", version = "0.3.0", optional = true }
3131
p256 = { version = "0.13.2", default-features = false, features = ["ecdh","arithmetic"], optional = true }
3232
rand_core = "0.6"

host/src/advertise.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub enum TxPower {
3535
Plus20dBm = 20,
3636
}
3737

38-
/// Configuriation for a single advertisement set.
38+
/// Configuration for a single advertisement set.
3939
#[derive(Debug, Clone)]
4040
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
4141
pub struct AdvertisementSet<'d> {

host/src/att.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ impl AttErrorCode {
9090
pub const WRITE_REQUEST_REJECTED: Self = Self { value: 0xFC };
9191
/// The client characteristic configuration descriptor (CCCD) is not configured according to the requirements of the profile or service
9292
pub const CCCD_IMPROPERLY_CONFIGURED: Self = Self { value: 0xFD };
93-
/// The profile or service request could not be serviced because an operation that has been previousl triggered is still in progress
93+
/// The profile or service request could not be serviced because an operation that has been previously triggered is still in progress
9494
pub const PROCEDURE_ALREADY_IN_PROGRESS: Self = Self { value: 0xFE };
9595
/// The attribute value is out of range as defined by a profile or service specification
9696
pub const OUT_OF_RANGE: Self = Self { value: 0xFF };
@@ -131,7 +131,7 @@ impl Display for AttErrorCode {
131131

132132
&Self::WRITE_REQUEST_REJECTED => f.write_str("write request rejected: the write request could not be fulfilled for reasons other than permissions"),
133133
&Self::CCCD_IMPROPERLY_CONFIGURED => f.write_str("CCCD improperly configured: the client characteristic configuration descriptor (CCCD) is not configured according to the requirements of the profile or service"),
134-
&Self::PROCEDURE_ALREADY_IN_PROGRESS => f.write_str("procedure already in progress: the profile or service request could not be serviced because an operation that has been previousl triggered is still in progress"),
134+
&Self::PROCEDURE_ALREADY_IN_PROGRESS => f.write_str("procedure already in progress: the profile or service request could not be serviced because an operation that has been previously triggered is still in progress"),
135135
&Self::OUT_OF_RANGE => f.write_str("out of range: the attribute value is out of range as defined by a profile or service specification"),
136136

137137
other => write!(f, "unknown error code {other}: check the most recent bluetooth spec"),

host/src/attribute.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ impl<'d, M: RawMutex, const MAX: usize> AttributeTable<'d, M, MAX> {
402402
/// The provided data must exactly match the size of the storage for the characteristic,
403403
/// otherwise this function will panic.
404404
///
405-
/// If the characteristic for the handle cannot be found, or the shape of the data does not match the type of the characterstic,
405+
/// If the characteristic for the handle cannot be found, or the shape of the data does not match the type of the characteristic,
406406
/// an error is returned
407407
pub fn set<T: AttributeHandle>(&self, attribute_handle: &T, input: &T::Value) -> Result<(), Error> {
408408
let gatt_value = input.as_gatt();
@@ -563,7 +563,7 @@ impl<'d, M: RawMutex, const MAX: usize> ServiceBuilder<'_, 'd, M, MAX> {
563563
}
564564
}
565565

566-
/// Add a characteristic to this service with a refererence to a mutable storage buffer.
566+
/// Add a characteristic to this service with a reference to a mutable storage buffer.
567567
pub fn add_characteristic<T: AsGatt, U: Into<Uuid>>(
568568
&mut self,
569569
uuid: U,
@@ -588,7 +588,7 @@ impl<'d, M: RawMutex, const MAX: usize> ServiceBuilder<'_, 'd, M, MAX> {
588588
)
589589
}
590590

591-
/// Add a characteristic to this service with a refererence to an immutable storage buffer.
591+
/// Add a characteristic to this service with a reference to an immutable storage buffer.
592592
pub fn add_characteristic_ro<T: AsGatt, U: Into<Uuid>>(
593593
&mut self,
594594
uuid: U,

0 commit comments

Comments
 (0)