Skip to content

Commit b4400fb

Browse files
Fix cargo fmt formatting in adc_read.rs and multicore.rs
Agent-Logs-Url: https://github.com/Baker-link-Lab/bakerlink_tutorial_template/sessions/99741efd-b109-4711-a438-aa321bdcdcb1 Co-authored-by: Baker-Tanaka <42606588+Baker-Tanaka@users.noreply.github.com>
1 parent a91ca41 commit b4400fb

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

examples/adc_read.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,12 @@ fn main() -> ! {
7474
// 整数演算で近似: temp_mC = 27000 - (voltage_uV - 706000) * 1000 / 1721
7575
let temp_voltage_uv = (temp_value as i32) * 3_300_000 / 4096;
7676
let temp_mc = 27_000 - (temp_voltage_uv - 706_000) * 1000 / 1721;
77-
info!("Temperature: {}.{} deg C (raw={})", temp_mc / 1000, (temp_mc % 1000) / 100, temp_value);
77+
info!(
78+
"Temperature: {}.{} deg C (raw={})",
79+
temp_mc / 1000,
80+
(temp_mc % 1000) / 100,
81+
temp_value
82+
);
7883

7984
timer.delay_ms(1000);
8085
}

examples/multicore.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,7 @@ fn main() -> ! {
9898
let cores = mc.cores();
9999
let core1 = &mut cores[1];
100100
core1
101-
.spawn(
102-
CORE1_STACK.take().unwrap(),
103-
core1_task,
104-
)
101+
.spawn(CORE1_STACK.take().unwrap(), core1_task)
105102
.unwrap();
106103

107104
// Core1に開始シグナルを送信

0 commit comments

Comments
 (0)