Skip to content

Commit 5d4fa40

Browse files
committed
bump deps of firmware example
1 parent 15c41b7 commit 5d4fa40

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

actor-example/firmware/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ actors = { path = "../actors" }
88
cortex-m = "0.7.1"
99
cortex-m-rt = "0.6.13"
1010
cortex-m-rtic = { path = "../.." }
11-
defmt = "0.2.0"
12-
defmt-rtt = "0.2.0"
11+
defmt = "0.3.0"
12+
defmt-rtt = "0.3.1"
1313
nrf52840-hal = "0.12.2"
14-
panic-probe = { version = "0.2.0", features = ["print-defmt"] }
14+
panic-probe = { version = "0.3.0", features = ["print-defmt"] }
1515
rtic-actor-traits = { path = "../../actor-traits" }
16-
systick-monotonic = "0.1.0-alpha.0"
16+
systick-monotonic = "1"
1717

1818
[features]
1919
# set logging levels here

actor-example/firmware/src/bin/temperature-monitor.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ mod app {
88
use actors::{
99
FakeTemperatureSensor, TemperatureAlert, TemperatureMonitor, TemperatureReadingCelsius,
1010
};
11-
use rtic::time::duration::*;
1211
use rtic_actor_traits::Receive;
13-
use systick_monotonic::Systick;
12+
use systick_monotonic::*;
1413

1514
// configuration
1615
const TEMPERATURE_THRESHOLD: i32 = 37;
@@ -31,7 +30,7 @@ mod app {
3130

3231
impl Receive<TemperatureReadingCelsius> for TemperatureTracer {
3332
fn receive(&mut self, reading: TemperatureReadingCelsius) {
34-
defmt::trace!("temperature: {} C", reading.0);
33+
defmt::println!("temperature: {} C", reading.0);
3534
}
3635
}
3736

@@ -83,7 +82,7 @@ mod app {
8382
#[task(local = [temperature_sensor])]
8483
fn periodic(cx: periodic::Context) {
8584
cx.local.temperature_sensor.read();
86-
periodic::spawn_after(1.seconds()).expect("OOM");
85+
periodic::spawn_after(1.secs()).expect("OOM");
8786
}
8887

8988
#[shared]

0 commit comments

Comments
 (0)