Commit 5fac283
committed
Reduce codesize of setOutputPower
The logic can be simplified by using integer logic without a functional
change. Reduces code size by 40% (78 bytes -> 46 bytes) and silences
a Warith-conversion warning.1 parent 5b767a3 commit 5fac283
1 file changed
+8
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
376 | 379 | | |
377 | 380 | | |
378 | | - | |
379 | | - | |
| 381 | + | |
380 | 382 | | |
381 | 383 | | |
382 | | - | |
383 | 384 | | |
384 | 385 | | |
385 | 386 | | |
| |||
0 commit comments