diff options
| author | Dirk Stolle <[email protected]> | 2023-05-08 23:25:01 +0200 |
|---|---|---|
| committer | Dirk Stolle <[email protected]> | 2023-05-08 23:25:01 +0200 |
| commit | 0584312ef0324d2ac67dbb9517176fabf628eec9 (patch) | |
| tree | 1b6e67474474fad99e7035a8e8898f4fb78656ad /examples/nrf52840 | |
| parent | d0703f83dbe0099c3dca0c912d873365a2188018 (diff) | |
Fix some typos
Diffstat (limited to 'examples/nrf52840')
| -rw-r--r-- | examples/nrf52840/src/bin/pubsub.rs | 4 | ||||
| -rw-r--r-- | examples/nrf52840/src/bin/usb_serial.rs | 2 | ||||
| -rw-r--r-- | examples/nrf52840/src/bin/usb_serial_multitask.rs | 2 | ||||
| -rw-r--r-- | examples/nrf52840/src/bin/usb_serial_winusb.rs | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/examples/nrf52840/src/bin/pubsub.rs b/examples/nrf52840/src/bin/pubsub.rs index 688e6d075..cca60ebc9 100644 --- a/examples/nrf52840/src/bin/pubsub.rs +++ b/examples/nrf52840/src/bin/pubsub.rs | |||
| @@ -74,9 +74,9 @@ async fn fast_logger(mut messages: Subscriber<'static, ThreadModeRawMutex, Messa | |||
| 74 | } | 74 | } |
| 75 | 75 | ||
| 76 | /// A logger task that awaits the messages, but also does some other work. | 76 | /// A logger task that awaits the messages, but also does some other work. |
| 77 | /// Because of this, depeding on how the messages were published, the subscriber might miss some messages | 77 | /// Because of this, depending on how the messages were published, the subscriber might miss some messages. |
| 78 | /// | 78 | /// |
| 79 | /// This takes the dynamic `DynSubscriber`. This is not as performant as the generic version, but let's you ignore some of the generics | 79 | /// This takes the dynamic `DynSubscriber`. This is not as performant as the generic version, but let's you ignore some of the generics. |
| 80 | #[embassy_executor::task] | 80 | #[embassy_executor::task] |
| 81 | async fn slow_logger(mut messages: DynSubscriber<'static, Message>) { | 81 | async fn slow_logger(mut messages: DynSubscriber<'static, Message>) { |
| 82 | loop { | 82 | loop { |
diff --git a/examples/nrf52840/src/bin/usb_serial.rs b/examples/nrf52840/src/bin/usb_serial.rs index 9727a4f57..dc95cde84 100644 --- a/examples/nrf52840/src/bin/usb_serial.rs +++ b/examples/nrf52840/src/bin/usb_serial.rs | |||
| @@ -40,7 +40,7 @@ async fn main(_spawner: Spawner) { | |||
| 40 | config.max_power = 100; | 40 | config.max_power = 100; |
| 41 | config.max_packet_size_0 = 64; | 41 | config.max_packet_size_0 = 64; |
| 42 | 42 | ||
| 43 | // Required for windows compatiblity. | 43 | // Required for windows compatibility. |
| 44 | // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help | 44 | // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help |
| 45 | config.device_class = 0xEF; | 45 | config.device_class = 0xEF; |
| 46 | config.device_sub_class = 0x02; | 46 | config.device_sub_class = 0x02; |
diff --git a/examples/nrf52840/src/bin/usb_serial_multitask.rs b/examples/nrf52840/src/bin/usb_serial_multitask.rs index 6da2c2a2f..ac22d9499 100644 --- a/examples/nrf52840/src/bin/usb_serial_multitask.rs +++ b/examples/nrf52840/src/bin/usb_serial_multitask.rs | |||
| @@ -66,7 +66,7 @@ async fn main(spawner: Spawner) { | |||
| 66 | config.max_power = 100; | 66 | config.max_power = 100; |
| 67 | config.max_packet_size_0 = 64; | 67 | config.max_packet_size_0 = 64; |
| 68 | 68 | ||
| 69 | // Required for windows compatiblity. | 69 | // Required for windows compatibility. |
| 70 | // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help | 70 | // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help |
| 71 | config.device_class = 0xEF; | 71 | config.device_class = 0xEF; |
| 72 | config.device_sub_class = 0x02; | 72 | config.device_sub_class = 0x02; |
diff --git a/examples/nrf52840/src/bin/usb_serial_winusb.rs b/examples/nrf52840/src/bin/usb_serial_winusb.rs index 6e4f71a48..1d39d3841 100644 --- a/examples/nrf52840/src/bin/usb_serial_winusb.rs +++ b/examples/nrf52840/src/bin/usb_serial_winusb.rs | |||
| @@ -45,7 +45,7 @@ async fn main(_spawner: Spawner) { | |||
| 45 | config.max_power = 100; | 45 | config.max_power = 100; |
| 46 | config.max_packet_size_0 = 64; | 46 | config.max_packet_size_0 = 64; |
| 47 | 47 | ||
| 48 | // Required for windows compatiblity. | 48 | // Required for windows compatibility. |
| 49 | // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help | 49 | // https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/kconfig/CONFIG_CDC_ACM_IAD.html#help |
| 50 | config.device_class = 0xEF; | 50 | config.device_class = 0xEF; |
| 51 | config.device_sub_class = 0x02; | 51 | config.device_sub_class = 0x02; |
