Skip to content

Commit

Permalink
chore: Fix internal method casing
Browse files Browse the repository at this point in the history
  • Loading branch information
franky47 committed Aug 6, 2021
1 parent 0d605dc commit 7ca289d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/MIDI.h
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ class MidiInterface
inline void handleNullVelocityNoteOnAsNoteOff();
inline bool inputFilter(Channel inChannel);
inline void resetInput();
inline void UpdateLastSentTime();
inline void updateLastSentTime();

// -------------------------------------------------------------------------
// Transport
Expand Down
25 changes: 13 additions & 12 deletions src/MIDI.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ inline MidiInterface<Transport, Settings, Platform>::MidiInterface(Transport& in
, mReceiverActiveSensingActivated(false)
, mLastError(0)
{
mSenderActiveSensingPeriodicity = Settings::SenderActiveSensingPeriodicity;
mSenderActiveSensingPeriodicity = Settings::SenderActiveSensingPeriodicity;
}

/*! \brief Destructor for MidiInterface.
Expand Down Expand Up @@ -141,7 +141,7 @@ void MidiInterface<Transport, Settings, Platform>::send(const MidiMessage& inMes
}
}
mTransport.endTransmission();
UpdateLastSentTime();
updateLastSentTime();
}


Expand Down Expand Up @@ -202,7 +202,7 @@ void MidiInterface<Transport, Settings, Platform>::send(MidiType inType,
}

mTransport.endTransmission();
UpdateLastSentTime();
updateLastSentTime();
}
}
else if (inType >= Clock && inType <= SystemReset)
Expand Down Expand Up @@ -372,7 +372,7 @@ void MidiInterface<Transport, Settings, Platform>::sendSysEx(unsigned inLength,
mTransport.write(MidiType::SystemExclusiveEnd);

mTransport.endTransmission();
UpdateLastSentTime();
updateLastSentTime();
}

if (Settings::UseRunningStatus)
Expand Down Expand Up @@ -475,7 +475,7 @@ void MidiInterface<Transport, Settings, Platform>::sendCommon(MidiType inType, u
break; // LCOV_EXCL_LINE - Coverage blind spot
}
mTransport.endTransmission();
UpdateLastSentTime();
updateLastSentTime();
}

if (Settings::UseRunningStatus)
Expand Down Expand Up @@ -506,7 +506,7 @@ void MidiInterface<Transport, Settings, Platform>::sendRealTime(MidiType inType)
{
mTransport.write((byte)inType);
mTransport.endTransmission();
UpdateLastSentTime();
updateLastSentTime();
}
break;
default:
Expand Down Expand Up @@ -673,6 +673,13 @@ inline void MidiInterface<Transport, Settings, Platform>::endNrpn(Channel inChan
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

// -----------------------------------------------------------------------------
Expand Down Expand Up @@ -1381,12 +1388,6 @@ inline void MidiInterface<Transport, Settings, Platform>::turnThruOff()
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

Expand Down

0 comments on commit 7ca289d

Please sign in to comment.