Skip to content

Commit

Permalink
Merge pull request #48 from Infineon/develop
Browse files Browse the repository at this point in the history
Hotfix for wiring_time
  • Loading branch information
mhollfelder authored Mar 30, 2018
2 parents ae58e28 + 5d69010 commit f5da784
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions arm/cores/wiring_time.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ return taskTable[ ID ].status;
Return int -1 No free task available
>=0 Number of added task
*/
extern int addTask( int(* ptr)( int, int16_t ) )
int addTask( int(* ptr)( int, int16_t ) )
{
noInterrupts( );
for( int i = NUM_TONE_PINS; i < _MAX_TASKS - 1; i++ )
Expand All @@ -463,7 +463,7 @@ extern int addTask( int(* ptr)( int, int16_t ) )
-1 Invalid task address
>=0 Number of deleted task
*/
extern int deleteTask( int(* ptr)( int, int16_t ) )
int deleteTask( int(* ptr)( int, int16_t ) )
{
noInterrupts( );
int ID = findID( ptr );
Expand All @@ -473,8 +473,6 @@ extern int deleteTask( int(* ptr)( int, int16_t ) )
taskTable[ ID ].status = 0;
tasks[ ID ] = NULL;
setInterval(ID, 0);
interrupts( );
return ID;
}
interrupts( );
return ID;
Expand Down

0 comments on commit f5da784

Please sign in to comment.