Add more guards for CIRCUITPYTHON_PEW

This commit is contained in:
Radomir Dopieralski 2019-03-01 18:50:00 +01:00
parent 2bfafd1fc9
commit 263134dcd3
2 changed files with 3 additions and 1 deletions

View File

@ -226,7 +226,7 @@ void reset_port(void) {
#if CIRCUITPY_GAMEPAD
gamepad_reset();
#endif
#ifdef CIRCUITPY_PEW
#if CIRCUITPY_PEW
pew_reset();
#endif

View File

@ -50,7 +50,9 @@ void shared_timer_handler(bool is_tc, uint8_t index) {
pulseout_interrupt_handler(index);
break;
case TC_HANDLER_PEW:
#if CIRCUITPY_PEW
pewpew_interrupt_handler(index);
#endif
break;
default:
break;