chore: Fix internal method casing

This commit is contained in:
Francois Best 2021-08-06 09:33:22 +02:00
parent 0d605dc8a7
commit 7ca289d84e
2 changed files with 14 additions and 13 deletions

View File

@ -254,7 +254,7 @@ private:
inline void handleNullVelocityNoteOnAsNoteOff(); inline void handleNullVelocityNoteOnAsNoteOff();
inline bool inputFilter(Channel inChannel); inline bool inputFilter(Channel inChannel);
inline void resetInput(); inline void resetInput();
inline void UpdateLastSentTime(); inline void updateLastSentTime();
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
// Transport // Transport

View File

@ -141,7 +141,7 @@ void MidiInterface<Transport, Settings, Platform>::send(const MidiMessage& inMes
} }
} }
mTransport.endTransmission(); mTransport.endTransmission();
UpdateLastSentTime(); updateLastSentTime();
} }
@ -202,7 +202,7 @@ void MidiInterface<Transport, Settings, Platform>::send(MidiType inType,
} }
mTransport.endTransmission(); mTransport.endTransmission();
UpdateLastSentTime(); updateLastSentTime();
} }
} }
else if (inType >= Clock && inType <= SystemReset) else if (inType >= Clock && inType <= SystemReset)
@ -372,7 +372,7 @@ void MidiInterface<Transport, Settings, Platform>::sendSysEx(unsigned inLength,
mTransport.write(MidiType::SystemExclusiveEnd); mTransport.write(MidiType::SystemExclusiveEnd);
mTransport.endTransmission(); mTransport.endTransmission();
UpdateLastSentTime(); updateLastSentTime();
} }
if (Settings::UseRunningStatus) if (Settings::UseRunningStatus)
@ -475,7 +475,7 @@ void MidiInterface<Transport, Settings, Platform>::sendCommon(MidiType inType, u
break; // LCOV_EXCL_LINE - Coverage blind spot break; // LCOV_EXCL_LINE - Coverage blind spot
} }
mTransport.endTransmission(); mTransport.endTransmission();
UpdateLastSentTime(); updateLastSentTime();
} }
if (Settings::UseRunningStatus) if (Settings::UseRunningStatus)
@ -506,7 +506,7 @@ void MidiInterface<Transport, Settings, Platform>::sendRealTime(MidiType inType)
{ {
mTransport.write((byte)inType); mTransport.write((byte)inType);
mTransport.endTransmission(); mTransport.endTransmission();
UpdateLastSentTime(); updateLastSentTime();
} }
break; break;
default: default:
@ -673,6 +673,13 @@ inline void MidiInterface<Transport, Settings, Platform>::endNrpn(Channel inChan
mCurrentNrpnNumber = 0xffff; mCurrentNrpnNumber = 0xffff;
} }
template<class Transport, class Settings, class Platform>
inline void MidiInterface<Transport, Settings, Platform>::updateLastSentTime()
{
if (Settings::UseSenderActiveSensing && mSenderActiveSensingPeriodicity)
mLastMessageSentTime = Platform::now();
}
/*! @} */ // End of doc group MIDI Output /*! @} */ // End of doc group MIDI Output
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
@ -1381,12 +1388,6 @@ inline void MidiInterface<Transport, Settings, Platform>::turnThruOff()
mThruFilterMode = Thru::Off; mThruFilterMode = Thru::Off;
} }
template<class Transport, class Settings, class Platform>
inline void MidiInterface<Transport, Settings, Platform>::UpdateLastSentTime()
{
if (Settings::UseSenderActiveSensing && mSenderActiveSensingPeriodicity)
mLastMessageSentTime = Platform::now();
}
/*! @} */ // End of doc group MIDI Thru /*! @} */ // End of doc group MIDI Thru