Skip to content

Commit

Permalink
feat: ledpicker 클릭시 밝기순서 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Tnks2U committed Nov 25, 2024
1 parent 6ee5492 commit 623a5ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/ledPicker/ledPicker.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ class LedPicker extends Component {
}
} else {
if (withLevel) {
status[x][y] += 1;
if (status[x][y] > 9) {
status[x][y] = 0;
status[x][y] -= 1;
if (status[x][y] < 0) {
status[x][y] = 9;
}
} else {
if (status[x][y] == targetBrightness) {
Expand Down

0 comments on commit 623a5ea

Please sign in to comment.