vPortEnterCritical assert cause

This is not being called from an ISR, I rather think this was probably the problem.