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;
437
437
Return int -1 No free task available
438
438
>=0 Number of added task
439
439
*/
440
- extern int addTask ( int (* ptr )( int , int16_t ) )
440
+ int addTask ( int (* ptr )( int , int16_t ) )
441
441
{
442
442
noInterrupts ( );
443
443
for ( int i = NUM_TONE_PINS ; i < _MAX_TASKS - 1 ; i ++ )
@@ -463,7 +463,7 @@ extern int addTask( int(* ptr)( int, int16_t ) )
463
463
-1 Invalid task address
464
464
>=0 Number of deleted task
465
465
*/
466
- extern int deleteTask ( int (* ptr )( int , int16_t ) )
466
+ int deleteTask ( int (* ptr )( int , int16_t ) )
467
467
{
468
468
noInterrupts ( );
469
469
int ID = findID ( ptr );
@@ -473,8 +473,6 @@ extern int deleteTask( int(* ptr)( int, int16_t ) )
473
473
taskTable [ ID ].status = 0 ;
474
474
tasks [ ID ] = NULL ;
475
475
setInterval (ID , 0 );
476
- interrupts ( );
477
- return ID ;
478
476
}
479
477
interrupts ( );
480
478
return ID ;
You can’t perform that action at this time.
0 commit comments