Skip to content

Commit

Permalink
may fix compile test failures.
Browse files Browse the repository at this point in the history
  • Loading branch information
SpenceKonde committed Aug 17, 2023
1 parent 57ea0f3 commit f1ba4e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions avr/cores/tiny/wiring_analog.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,8 @@ 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 (timer & 0x04) {
OCR1B = val;
} else {
Expand Down
2 changes: 1 addition & 1 deletion avr/libraries/Wire/src/Wire.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
and the library provides an instance of it named Wire
*/

#include <avr/io.h>
#include <Arduino.h>



Expand Down

0 comments on commit f1ba4e9

Please sign in to comment.