Updated module_foc_qei to handle QEI error flag, updated app_test_qei to test QEI error flag