spcbssched03/tasks_periodic.c: Fixed now used before set warning

This commit is contained in:
Joel Sherrill
2015-03-17 10:05:08 -05:00
parent 6b38b72f1a
commit 72d3f1a65e
@@ -104,6 +104,7 @@ rtems_task Tasks_Periodic(
/* Specific scenario for task 4: tries to exceed announced budget,
the task priority has to be pulled down to background. */
now = rtems_clock_get_ticks_since_boot();
if ( !scenario_done && argument == 4 && now >= 200 ) {
Violating_task[ argument ] = 1;
scenario_done = 1;