summaryrefslogtreecommitdiff
path: root/shared-module
diff options
context:
space:
mode:
Diffstat (limited to 'shared-module')
-rw-r--r--shared-module/_pew/PewPew.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/shared-module/_pew/PewPew.c b/shared-module/_pew/PewPew.c
index 3fea689a3..755b88394 100644
--- a/shared-module/_pew/PewPew.c
+++ b/shared-module/_pew/PewPew.c
@@ -43,9 +43,13 @@ static uint8_t pewpew_tc_index = 0xff;
void pewpew_interrupt_handler(uint8_t index) {
- if (index != pewpew_tc_index) return;
+ if (index != pewpew_tc_index) {
+ return;
+ }
Tc* tc = tc_insts[index];
- if (!tc->COUNT16.INTFLAG.bit.MC0) return;
+ if (!tc->COUNT16.INTFLAG.bit.MC0) {
+ return;
+ }
pew_tick();