Skip to content

Commit cae99c0

Browse files
committed
fix: do not allow demo vsync event to send MIDI events if disabled!
1 parent 66f655b commit cae99c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/comm/comm_demo.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ static bool should_repeat_button(u16 joy_state, u16 button_mask)
112112

113113
void comm_demo_vsync(u16 delta)
114114
{
115+
if (!enabled) {
116+
return;
117+
}
118+
115119
JOY_update();
116120

117121
u16 joy_state = JOY_readJoypad(JOY_1);

0 commit comments

Comments
 (0)