Skip to content

Commit 2349940

Browse files
authored
Update cores/arduino/HardwareTimer.cpp
1 parent 5740040 commit 2349940

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/HardwareTimer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ void HardwareTimer::setInterruptPriority(uint32_t preemptPriority, uint32_t subP
910910
*/
911911
void HardwareTimer::attachInterrupt(callback_function_t callback)
912912
{
913-
if (callbacks[0] != nullptr) {
913+
if (callbacks[0]) {
914914
// Callback previously configured : do not clear neither enable IT, it is just a change of callback
915915
callbacks[0] = callback;
916916
} else {

0 commit comments

Comments
 (0)