diff options
-rw-r--r-- | audio/mpu401.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/audio/mpu401.cpp b/audio/mpu401.cpp index caad945258..966e367a93 100644 --- a/audio/mpu401.cpp +++ b/audio/mpu401.cpp @@ -33,7 +33,10 @@ void MidiChannel_MPU401::init(MidiDriver *owner, byte channel) { bool MidiChannel_MPU401::allocate() { if (_allocated) return false; - return (_allocated = true); + + _allocated = true; + + return true; } MidiDriver *MidiChannel_MPU401::device() { |