Merge pull request #7 from adafruit/tannewt-patch-1

packet_size -> incoming_packet_length
This commit is contained in:
Dan Halbert 2021-04-08 16:18:20 -04:00 committed by GitHub
commit fde6165748
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,7 +87,7 @@ class MIDIService(Service):
Returns the number of bytes written into ``buf``."""
if self._in_buffer is None:
self._in_buffer = bytearray(self._raw.packet_size)
self._in_buffer = bytearray(self._raw.incoming_packet_length)
i = 0
while i < length:
if self._in_index < self._in_length: