Skip to content

Commit 5835806

Browse files
committed
fix: Constify
1 parent 347b67a commit 5835806

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/midi_UsbPacketInterface.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ bool composeTxPacket(Buffer& inBuffer, midiEventPacket_t& outPacket)
3535
if (inBuffer.isEmpty()) {
3636
return false;
3737
}
38-
int bufferLength = inBuffer.getLength();
38+
const int bufferLength = inBuffer.getLength();
3939
const byte status = inBuffer.peek();
4040
const byte cin = midi::CodeIndexNumbers::fromStatus(status);
4141
const byte messageLength = midi::CodeIndexNumbers::getSize(cin);

0 commit comments

Comments
 (0)