Skip to content

Commit

Permalink
fix x7 compile
Browse files Browse the repository at this point in the history
  • Loading branch information
SpenceKonde committed Aug 18, 2023
1 parent cf2d95b commit a89cf26
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions avr/cores/tiny/wiring_analog.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,9 @@ void analogWrite(uint8_t pin, int val) {
// timer & 0xF0 gives the bitmask, and if it is to be swapped, swap it,

uint8_t bitmask = 0xF0 & timer;
if (bitmask & (bitmask -1) != 0)
return
if ((bitmask & (bitmask -1)) != 0) {
return;
}
if (timer & 0x04) {
OCR1B = val;
} else {
Expand Down

0 comments on commit a89cf26

Please sign in to comment.