Skip to content

Commit

Permalink
fix wrong idx
Browse files Browse the repository at this point in the history
  • Loading branch information
suapapa committed Jan 15, 2025
1 parent 03ac808 commit c59025e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rusty_hangulclock/src/panel_ws2812.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ where
}

if (h == 0 || h == 24) && m10 + m1 == 0 {
show_leds(panel, vec![15, 16]); // 자정
show_leds(panel, vec![24 - 15, 24 - 16]); // 자정
return;
}

if h == 12 && m10 + m1 == 0 {
show_leds(panel, vec![16, 23]); // 정오
show_leds(panel, vec![24 - 16, 24 - 23]); // 정오
return;
}

Expand Down

0 comments on commit c59025e

Please sign in to comment.