Rtos code cntains bug possible incompatability with I2C

Fork of mbed-rtos by mbed official

Revision:
118:4c105b8d7cae
Parent:
114:031a41d65add
diff -r 0788b1a76461 -r 4c105b8d7cae rtx/TARGET_CORTEX_M/rt_CMSIS.c
--- a/rtx/TARGET_CORTEX_M/rt_CMSIS.c	Mon May 23 10:00:41 2016 +0100
+++ b/rtx/TARGET_CORTEX_M/rt_CMSIS.c	Mon May 23 11:00:15 2016 +0100
@@ -842,7 +842,7 @@
   if (__get_IPSR() != 0U) return osErrorISR;     // Not allowed in ISR
 
   ptcb = rt_tid2ptcb(thread_id);                // Get TCB pointer
-  if (ptcb == NULL) return osErrorParameter;
+  if (ptcb == NULL) return INACTIVE;
 
   return ptcb->state;
 }