8000 Add more guards for CIRCUITPYTHON_PEW · zencuke/circuitpython@263134d · GitHub
[go: up one dir, main page]

Skip to content

Commit 263134d

Browse files
committed
Add more guards for CIRCUITPYTHON_PEW
1 parent 2bfafd1 commit 263134d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ports/atmel-samd/supervisor/port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ void reset_port(void) {
226226
#if CIRCUITPY_GAMEPAD
227227
gamepad_reset();
228228
#endif
229-
#ifdef CIRCUITPY_PEW
229+
#if CIRCUITPY_PEW
230230
pew_reset();
231231
#endif
232232

ports/atmel-samd/timer_handler.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ void shared_timer_handler(bool is_tc, uint8_t index) {
5050
pulseout_interrupt_handler(index);
5151
break;
5252
case TC_HANDLER_PEW:
53+
#if CIRCUITPY_PEW
5354
pewpew_interrupt_handler(index);
55+
#endif
5456
break;
5557
default:
5658
break;

0 commit comments

Comments
 (0)
0