adapted to use the new error manager + added a pragma to remove variable FOC_2_EMS_SPEED under some conditions