Skip to content

Commit d77318e

Browse files
committed
Okay, we have CI, next step, check results BEFORE release
2.2.7 was busted on all 0-series.... good thing I checked.... shortly after releasing 2.2.7
1 parent 0a7e1d2 commit d77318e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

megaavr/cores/megatinycore/wiring_analog.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,9 +345,10 @@ void takeOverTCA0() {
345345
TCA0.SPLIT.CTRLESET = TCA_SPLIT_CMD_RESET_gc; /* |0x03; // do these bits need to be set or don't they? Does this even WORK on tinyAVR?! */
346346
}
347347

348-
348+
#if defined(TCD0)
349349
void takeOverTCD0() {
350350
TCD0.CTRLA = 0; // Stop TCD0
351351
_PROTECTED_WRITE(TCD0.FAULTCTRL,0); // Turn off all outputs
352352
PeripheralControl &= ~TIMERD0; // Mark timer as user controlled
353353
}
354+
#endif

0 commit comments

Comments
 (0)