fix: Constify

This commit is contained in:
Francois Best 2018-11-06 16:55:08 +01:00
parent 347b67a877
commit 5835806832
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ bool composeTxPacket(Buffer& inBuffer, midiEventPacket_t& outPacket)
if (inBuffer.isEmpty()) {
return false;
}
int bufferLength = inBuffer.getLength();
const int bufferLength = inBuffer.getLength();
const byte status = inBuffer.peek();
const byte cin = midi::CodeIndexNumbers::fromStatus(status);
const byte messageLength = midi::CodeIndexNumbers::getSize(cin);