Skip to content

Commit 2285bc3

Browse files
committed
Fix examples
1 parent b9a4d46 commit 2285bc3

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

atat/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ maintenance = { status = "actively-developed" }
1818
name = "atat"
1919

2020
[dependencies]
21-
embedded-io = "0.6.0"
22-
embedded-io-async = "0.6.0"
21+
embedded-io = "0.6"
22+
embedded-io-async = "0.6"
2323
futures = { version = "0.3", default-features = false }
2424
embassy-sync = "0.6"
2525
embassy-time = "0.4"
2626
heapless = { version = "^0.8", features = ["serde"] }
2727
serde_at = { path = "../serde_at", version = "^0.23.0", optional = true }
2828
atat_derive = { path = "../atat_derive", version = "^0.23.0", optional = true }
2929
serde_bytes = { version = "0.11.14", default-features = false, optional = true }
30-
heapless-bytes = { version = "0.3.0", optional = true }
30+
heapless-bytes = { version = "0.4.0", optional = true }
3131

3232

3333
nom = { version = "^7.1", default-features = false }

examples/Cargo.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ embassy-executor = { version = "0.7", features = [
3535
"arch-cortex-m",
3636
"executor-thread",
3737
], optional = true }
38-
embassy-time = "0.4"
38+
embassy-time = { version = "0.4" }
3939
embassy-rp = { version = "0.3", features = [
40+
"rp2040",
4041
"unstable-pac",
4142
"time-driver",
4243
"critical-section-impl",
@@ -69,6 +70,7 @@ std = [
6970
"dep:tokio",
7071
"dep:tokio-serial",
7172
"atat/log",
73+
"embassy-time/generic-queue-8",
7274
"embassy-time/std",
7375
"critical-section/std",
7476
"embedded-io-adapters",

examples/src/bin/embassy.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ async fn main(spawner: Spawner) {
4141
RX_BUF.init([0; 16]),
4242
uart::Config::default(),
4343
);
44-
let (reader, writer) = uart.split();
44+
let (writer, reader) = uart.split();
4545

4646
static RES_SLOT: ResponseSlot<INGRESS_BUF_SIZE> = ResponseSlot::new();
4747
static URC_CHANNEL: UrcChannel<common::Urc, URC_CAPACITY, URC_SUBSCRIBERS> = UrcChannel::new();

0 commit comments

Comments
 (0)