half-working state

FreeRTOS problems with synchronizing. Must be fixed.