- THEKERNEL->streams->printf("MotorDriverControl ERROR: designator not defined\n");
- return false; // designator required
+ // NOTE DEprecated use of designator for backward compatibility
+ str= THEKERNEL->config->value( motor_driver_control_checksum, cs, designator_checksum)->by_default("")->as_string();
+ if(str.empty()) {
+ THEKERNEL->streams->printf("MotorDriverControl ERROR: axis not defined\n");
+ return false; // axis/axis required
+ }
+ }
+ axis= str[0];
+ if( !((axis >= 'X' && axis <= 'Z') || (axis >= 'A' && axis <= 'C')) ) {
+ THEKERNEL->streams->printf("MotorDriverControl ERROR: axis must be one of XYZABC\n");
+ return false; // axis is illegal