From 7ca289d84e6b237fadedd48cbc2132df3f7e9593 Mon Sep 17 00:00:00 2001 From: Francois Best Date: Fri, 6 Aug 2021 09:33:22 +0200 Subject: [PATCH] chore: Fix internal method casing --- src/MIDI.h | 2 +- src/MIDI.hpp | 25 +++++++++++++------------ 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/src/MIDI.h b/src/MIDI.h index d15888fc..0e927cea 100644 --- a/src/MIDI.h +++ b/src/MIDI.h @@ -254,7 +254,7 @@ class MidiInterface inline void handleNullVelocityNoteOnAsNoteOff(); inline bool inputFilter(Channel inChannel); inline void resetInput(); - inline void UpdateLastSentTime(); + inline void updateLastSentTime(); // ------------------------------------------------------------------------- // Transport diff --git a/src/MIDI.hpp b/src/MIDI.hpp index 144e40e8..db2661bc 100644 --- a/src/MIDI.hpp +++ b/src/MIDI.hpp @@ -48,7 +48,7 @@ inline MidiInterface::MidiInterface(Transport& in , mReceiverActiveSensingActivated(false) , mLastError(0) { - mSenderActiveSensingPeriodicity = Settings::SenderActiveSensingPeriodicity; + mSenderActiveSensingPeriodicity = Settings::SenderActiveSensingPeriodicity; } /*! \brief Destructor for MidiInterface. @@ -141,7 +141,7 @@ void MidiInterface::send(const MidiMessage& inMes } } mTransport.endTransmission(); - UpdateLastSentTime(); + updateLastSentTime(); } @@ -202,7 +202,7 @@ void MidiInterface::send(MidiType inType, } mTransport.endTransmission(); - UpdateLastSentTime(); + updateLastSentTime(); } } else if (inType >= Clock && inType <= SystemReset) @@ -372,7 +372,7 @@ void MidiInterface::sendSysEx(unsigned inLength, mTransport.write(MidiType::SystemExclusiveEnd); mTransport.endTransmission(); - UpdateLastSentTime(); + updateLastSentTime(); } if (Settings::UseRunningStatus) @@ -475,7 +475,7 @@ void MidiInterface::sendCommon(MidiType inType, u break; // LCOV_EXCL_LINE - Coverage blind spot } mTransport.endTransmission(); - UpdateLastSentTime(); + updateLastSentTime(); } if (Settings::UseRunningStatus) @@ -506,7 +506,7 @@ void MidiInterface::sendRealTime(MidiType inType) { mTransport.write((byte)inType); mTransport.endTransmission(); - UpdateLastSentTime(); + updateLastSentTime(); } break; default: @@ -673,6 +673,13 @@ inline void MidiInterface::endNrpn(Channel inChan mCurrentNrpnNumber = 0xffff; } +template +inline void MidiInterface::updateLastSentTime() +{ + if (Settings::UseSenderActiveSensing && mSenderActiveSensingPeriodicity) + mLastMessageSentTime = Platform::now(); +} + /*! @} */ // End of doc group MIDI Output // ----------------------------------------------------------------------------- @@ -1381,12 +1388,6 @@ inline void MidiInterface::turnThruOff() mThruFilterMode = Thru::Off; } -template -inline void MidiInterface::UpdateLastSentTime() -{ - if (Settings::UseSenderActiveSensing && mSenderActiveSensingPeriodicity) - mLastMessageSentTime = Platform::now(); -} /*! @} */ // End of doc group MIDI Thru