Skip to content

Commit 7ca289d

Browse files
committed
chore: Fix internal method casing
1 parent 0d605dc commit 7ca289d

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

src/MIDI.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ class MidiInterface
254254
inline void handleNullVelocityNoteOnAsNoteOff();
255255
inline bool inputFilter(Channel inChannel);
256256
inline void resetInput();
257-
inline void UpdateLastSentTime();
257+
inline void updateLastSentTime();
258258

259259
// -------------------------------------------------------------------------
260260
// Transport

src/MIDI.hpp

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ inline MidiInterface<Transport, Settings, Platform>::MidiInterface(Transport& in
4848
, mReceiverActiveSensingActivated(false)
4949
, mLastError(0)
5050
{
51-
mSenderActiveSensingPeriodicity = Settings::SenderActiveSensingPeriodicity;
51+
mSenderActiveSensingPeriodicity = Settings::SenderActiveSensingPeriodicity;
5252
}
5353

5454
/*! \brief Destructor for MidiInterface.
@@ -141,7 +141,7 @@ void MidiInterface<Transport, Settings, Platform>::send(const MidiMessage& inMes
141141
}
142142
}
143143
mTransport.endTransmission();
144-
UpdateLastSentTime();
144+
updateLastSentTime();
145145
}
146146

147147

@@ -202,7 +202,7 @@ void MidiInterface<Transport, Settings, Platform>::send(MidiType inType,
202202
}
203203

204204
mTransport.endTransmission();
205-
UpdateLastSentTime();
205+
updateLastSentTime();
206206
}
207207
}
208208
else if (inType >= Clock && inType <= SystemReset)
@@ -372,7 +372,7 @@ void MidiInterface<Transport, Settings, Platform>::sendSysEx(unsigned inLength,
372372
mTransport.write(MidiType::SystemExclusiveEnd);
373373

374374
mTransport.endTransmission();
375-
UpdateLastSentTime();
375+
updateLastSentTime();
376376
}
377377

378378
if (Settings::UseRunningStatus)
@@ -475,7 +475,7 @@ void MidiInterface<Transport, Settings, Platform>::sendCommon(MidiType inType, u
475475
break; // LCOV_EXCL_LINE - Coverage blind spot
476476
}
477477
mTransport.endTransmission();
478-
UpdateLastSentTime();
478+
updateLastSentTime();
479479
}
480480

481481
if (Settings::UseRunningStatus)
@@ -506,7 +506,7 @@ void MidiInterface<Transport, Settings, Platform>::sendRealTime(MidiType inType)
506506
{
507507
mTransport.write((byte)inType);
508508
mTransport.endTransmission();
509-
UpdateLastSentTime();
509+
updateLastSentTime();
510510
}
511511
break;
512512
default:
@@ -673,6 +673,13 @@ inline void MidiInterface<Transport, Settings, Platform>::endNrpn(Channel inChan
673673
mCurrentNrpnNumber = 0xffff;
674674
}
675675

676+
template<class Transport, class Settings, class Platform>
677+
inline void MidiInterface<Transport, Settings, Platform>::updateLastSentTime()
678+
{
679+
if (Settings::UseSenderActiveSensing && mSenderActiveSensingPeriodicity)
680+
mLastMessageSentTime = Platform::now();
681+
}
682+
676683
/*! @} */ // End of doc group MIDI Output
677684

678685
// -----------------------------------------------------------------------------
@@ -1381,12 +1388,6 @@ inline void MidiInterface<Transport, Settings, Platform>::turnThruOff()
13811388
mThruFilterMode = Thru::Off;
13821389
}
13831390

1384-
template<class Transport, class Settings, class Platform>
1385-
inline void MidiInterface<Transport, Settings, Platform>::UpdateLastSentTime()
1386-
{
1387-
if (Settings::UseSenderActiveSensing && mSenderActiveSensingPeriodicity)
1388-
mLastMessageSentTime = Platform::now();
1389-
}
13901391

13911392
/*! @} */ // End of doc group MIDI Thru
13921393

0 commit comments

Comments
 (0)