Skip to content

Commit a6a9df1

Browse files
committed
Align serialEventRun() with main.cpp invocation.
1 parent c4aeec0 commit a6a9df1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/variantHooks.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,6 @@ void initVariant(void)
9999

100100
/*-----------------------------------------------------------*/
101101
#if ( configUSE_IDLE_HOOK == 1 )
102-
103-
void serialEventRun(void)
104-
{}
105-
106102
/*
107103
* Call the user defined loop() function from within the idle task.
108104
* This allows the application designer to add background functionality
@@ -114,7 +110,7 @@ void serialEventRun(void)
114110
void vApplicationIdleHook( void )
115111
{
116112
loop();
117-
serialEventRun();
113+
if (serialEventRun) serialEventRun();
118114
}
119115

120116
#endif /* configUSE_IDLE_HOOK == 1 */

0 commit comments

Comments
 (0)