Skip to content

Commit

Permalink
手电筒亮度调整
Browse files Browse the repository at this point in the history
  • Loading branch information
HChenX committed Feb 29, 2024
1 parent 541af55 commit 5d7638f
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -367,22 +367,23 @@ private void writeFile(int flash) {
case 2 -> {
if (bmtk)
zero(mtk, flash);
if (btorch) {
zero(torch, flash);
if (bother) {
zero(other, flash);
break; // 根据 CC0126 所述,不同时操作。
}
if (bother)
zero(other, flash);
if (btorch)
zero(torch, flash);
}
case 3 -> {
if (bmtk)
flashSwitch(mtk, flash);
if (btorch) {
flashSwitch(torch, flash);

if (bother) {
flashSwitch(other, flash);
break; // 根据 CC0126 所述,不同时操作。
}
if (bother)
flashSwitch(other, flash);
if (btorch)
flashSwitch(torch, flash);
}
}
}
Expand Down

0 comments on commit 5d7638f

Please sign in to comment.