File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -437,7 +437,7 @@ return taskTable[ ID ].status;
437437 Return int -1 No free task available
438438 >=0 Number of added task
439439*/
440- extern int addTask ( int (* ptr )( int , int16_t ) )
440+ int addTask ( int (* ptr )( int , int16_t ) )
441441{
442442 noInterrupts ( );
443443 for ( int i = NUM_TONE_PINS ; i < _MAX_TASKS - 1 ; i ++ )
@@ -463,7 +463,7 @@ extern int addTask( int(* ptr)( int, int16_t ) )
463463 -1 Invalid task address
464464 >=0 Number of deleted task
465465*/
466- extern int deleteTask ( int (* ptr )( int , int16_t ) )
466+ int deleteTask ( int (* ptr )( int , int16_t ) )
467467{
468468 noInterrupts ( );
469469 int ID = findID ( ptr );
@@ -473,8 +473,6 @@ extern int deleteTask( int(* ptr)( int, int16_t ) )
473473 taskTable [ ID ].status = 0 ;
474474 tasks [ ID ] = NULL ;
475475 setInterval (ID , 0 );
476- interrupts ( );
477- return ID ;
478476 }
479477 interrupts ( );
480478 return ID ;
You can’t perform that action at this time.
0 commit comments