Wrong ifdef

Issue #48 resolved
Chris Aholt created an issue

CTaskBase.hpp

  • } +
  • /** Activated = All dynamic parameters and data structures are
    • up to date and task is actively contributing to a controller. */
  • virtual sBool hasBeenActivated()
  • {
  • STaskBase* t_ds = getTaskData();
  • if(S_NULL == t_ds) { return false; } //Can't access task data. +#ifdef DEBUG!
  • if(!t_ds->has_been_init_)//If it is not initailized, it shouldn't be activated.
  • { assert(!t_ds->has_been_activated_); } +#endif
  • return t_ds->has_been_activated_;
  • }

Comments (2)

  1. Log in to comment