Skip to content

Commit

Permalink
remove loop at end of process
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolaus Baer committed Dec 19, 2024
1 parent 90a7e81 commit 542da1f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 20 deletions.
7 changes: 7 additions & 0 deletions a653_lib/a653_i_partition.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,13 @@ extern void SET_PARTITION_MODE (
}

pertition_status.OPERATING_MODE = OPERATING_MODE;

printDebug(1,"a653 start partition (%d)\n",getpid());
while (1){
a653_act_partition();
usleep(50);
}

*RETURN_CODE = NO_ERROR;
}

10 changes: 1 addition & 9 deletions partition_a.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,13 +222,5 @@ int main (int argc, char *argv[]){
/* if( Init_Process_ret != NO_ERROR )
RAISE_APPLICATION_ERROR( APPLICATION_ERROR, errorMsgs[Init_Process_ret], 10, &raiseErrorRet ); */


printDebug(0,"a653 start prcs (%d)\n",getpid());

while (1){
a653_act_partition();
usleep(50);
}

return ret_val;
return ret_val;
}
12 changes: 1 addition & 11 deletions partition_b.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,15 +282,5 @@ int main (int argc, char *argv[]){
/* if( Init_Process_ret != NO_ERROR )
RAISE_APPLICATION_ERROR( APPLICATION_ERROR, errorMsgs[Init_Process_ret], 10, &raiseErrorRet ); */



printDebug(3,"a653 start prcs (%d)\n",getpid());


while (1){
a653_act_partition();
usleep(50);
}

return ret_val;
return ret_val;
}

0 comments on commit 542da1f

Please sign in to comment.