timeout pdn (state: not runnning yet)
This commit is contained in:
@@ -29,6 +29,23 @@ const ScheduledCommand ControllerState::getLastCommand(Command command)
|
||||
return max;
|
||||
}
|
||||
|
||||
const ScheduledCommand ControllerState::getLastScheduledCommand()
|
||||
{
|
||||
ScheduledCommand lastCommand;
|
||||
|
||||
for(Command cmd : getAllCommands())
|
||||
{
|
||||
for(Bank bank : Configuration::getInstance().getBanks())
|
||||
{
|
||||
ScheduledCommand& current = lastCommandsOnBus[cmd][bank];
|
||||
if (current.getStart() > lastCommand.getStart())
|
||||
lastCommand = current;
|
||||
}
|
||||
}
|
||||
|
||||
return lastCommand;
|
||||
}
|
||||
|
||||
const ScheduledCommand ControllerState::getLastScheduledCommand(Bank bank)
|
||||
{
|
||||
ScheduledCommand lastCommand;
|
||||
|
||||
Reference in New Issue
Block a user