Revision 34c85f04 core/src/aos_system.c

View differences:

core/src/aos_system.c
781 781
  size_t threads = 0;
782 782
  thread_t* tp = chRegFirstThread();
783 783
  while (tp) {
784
    threads += (tp->state == CH_STATE_FINAL) ? 1 : 0;
784
    threads += (tp->state != CH_STATE_FINAL) ? 1 : 0;
785 785
    tp = chRegNextThread(tp);
786 786
  }
787 787

  

Also available in: Unified diff