Skip to content

Commit a4378a0

Browse files
committed
stm32: fix fmt in systick.zig
1 parent c1b4527 commit a4378a0

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

port/stmicro/stm32/src/hals/common/systick.zig

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,14 @@ pub fn get_time_since_boot() u64 {
7979
while (true) {
8080
const ticks = @as(u64, @intCast(reload - systick.VAL.read().CURRENT));
8181
const high_after = microzig.cpu.atomic.load(u32, &accumulated_ticks, .acquire);
82-
82+
8383
// ensure that 'high' and 'ticks' belong to the same
8484
// RELOAD..0 count down cycle
8585
if (high_before == high_after) {
8686
const all_ticks = (@as(u64, high_after) << 24) | ticks;
8787
const ns = all_ticks * ns_per_ticks;
8888
return ns >> 10;
89-
}
90-
else
91-
{
89+
} else {
9290
high_before = high_after;
9391
}
9492
}

0 commit comments

Comments
 (0)