Skip to content

Commit 5eafaad

Browse files
committed
Fix another part of the pwm bug on 8-pin parts
1 parent 4bb071c commit 5eafaad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ChangeLog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Changes listed here are checked in to GitHub ("master" branch unless specificall
1010
## Released Versions
1111
### 2.2.9
1212
* Correct critical regression impacting PWM via TCA0 WO3, WO4, and WO5. (#335)
13-
* Correct canShow() in tinyNeoPixel to permit use when micros() is not available - skip the test and #warn the user that they must make sure that they don't call show() too frequently. WS2812-alikes need 50us pause (according to datasheet - internet says only 20us) in the data between consecutive frames to tell them that it's time to latch the data they got, and if they don't see that before you start blasting out more data, they'll think it's part of the same stream and never turn on.
13+
* Correct canShow() in tinyNeoPixel to permit use when micros() is not available - skip the test and #warn the user that they must make sure that they don't call show() too frequently. WS2812-alikes need 50us pause (according to datasheet - internet says only 20us) in the data between consecutive frames to tell them that it's time to latch the data they got, and if they don't see that before you start blasting out more data, they'll think it's part of the same frame and never turn on.
1414
* Correct bug in RTC millis timekeeping that caused reverse time travel due to improper guarding against overflow during millis() processing. Also, it's an average of 1-2 us closer to the actual number now (neglecting any contribution from oscillator inaccuracy - which is of course orders of magnitude higher) (#331)
1515

1616

megaavr/cores/megatinycore/wiring_analog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ void analogWrite(uint8_t pin, int val) {
240240
/* Calculate correct compare buffer register */
241241
#ifdef __AVR_ATtinyxy2__
242242
if (bit_mask == 0x80) {
243-
bit_mask == 1; //on the xy2, WO0 is on PA7
243+
bit_mask = 1; //on the xy2, WO0 is on PA7
244244
}
245245
#endif
246246
uint8_t offset=0;

0 commit comments

Comments
 (0)