setMotorEnableFlag: added library support for enabling/disabling motor