diff --git a/src/main/java/au/edu/sa/mbhs/studentrobotics/bunyipslib/Scheduler.kt b/src/main/java/au/edu/sa/mbhs/studentrobotics/bunyipslib/Scheduler.kt index eb71b7f07..db1f46759 100644 --- a/src/main/java/au/edu/sa/mbhs/studentrobotics/bunyipslib/Scheduler.kt +++ b/src/main/java/au/edu/sa/mbhs/studentrobotics/bunyipslib/Scheduler.kt @@ -201,7 +201,7 @@ class Scheduler : BunyipsComponent() { * @throws IndexOutOfBoundsException If the index is out of bounds. */ fun unbind(index: Int) { - Dbg.logd(javaClass, "unbound task: %", allocatedTasks.removeAt(index)) + Dbg.logd(javaClass, "unbound task %: %", allocatedTasks.size - 1, allocatedTasks.removeAt(index)) } /** @@ -211,7 +211,7 @@ class Scheduler : BunyipsComponent() { */ fun unbind(task: ScheduledTask) { if (allocatedTasks.remove(task)) - Dbg.logd(javaClass, "unbound task: %", task) + Dbg.logd(javaClass, "unbound task %: %", allocatedTasks.size, task) } /**