File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ def elaborate(self, platform):
173
173
# If we're halfway through a message and don't get the rest of it
174
174
# for this timeout, we give up and ignore the message.
175
175
timeout = Signal (24 )
176
- timeout_cycles = 60000 # 1msec
176
+ timeout_cycles = 2 * 60000 # 2msec
177
177
m .d .sync += timeout .eq (timeout - 1 )
178
178
179
179
# Computed MIDI message payload length.
@@ -257,6 +257,7 @@ def elaborate(self, platform):
257
257
with m .State ('SYSEX' ):
258
258
m .d .comb += self .i .ready .eq (1 ),
259
259
with m .If (self .i .valid ):
260
+ m .d .sync += self .o .payload .eq (0 )
260
261
# Consuming bytes until SYSEX_END, report the SYSEX_END and restart the state machine.
261
262
with m .If (self .i .payload == ((Status .SUBCLASS .value << 4 ) | Subclass .SYSEX_END .value )):
262
263
m .d .sync += self .o .payload .as_value ()[:8 ].eq (self .i .payload )
You can’t perform that action at this time.
0 commit comments