possibly slowing down your interrupts a couple of micros.
You could remove the object from the list and add it to a 'disabled' list. If added again it is moved back to the 'enabled' list.
Should be faster and yes a bit more complex (footprint).
possibly slowing down your interrupts a couple of micros.
You could remove the object from the list and add it to a 'disabled' list. If added again it is moved back to the 'enabled' list.
Should be faster and yes a bit more complex (footprint).