@@ -1003,7 +1003,7 @@ void emcmotCommandHandler_locked(void *arg, long servo_period)
10031003 emcmotStatus -> commandStatus = EMCMOT_COMMAND_INVALID_COMMAND ;
10041004 SET_MOTION_ERROR_FLAG (1 );
10051005 break ;
1006- } else if (!inRange (emcmotCommand -> pos , emcmotCommand -> id , "Linear" )) {
1006+ } else if (!inRange (emcmotCommand -> pos , emcmotCommand -> id . line_number , "Linear" )) {
10071007 reportError (_ ("invalid params in linear command" ));
10081008 emcmotStatus -> commandStatus = EMCMOT_COMMAND_INVALID_PARAMS ;
10091009 tpAbort (& emcmotInternal -> coord_tp );
@@ -1041,8 +1041,8 @@ void emcmotCommandHandler_locked(void *arg, long servo_period)
10411041 emcmotCommand -> tag );
10421042 //KLUDGE ignore zero length line
10431043 if (res_addline < 0 ) {
1044- reportError (_ ("can't add linear move at line %d, error code %d" ),
1045- emcmotCommand -> id , res_addline );
1044+ reportError (_ ("can't add linear move id %ld at %s line %d, error code %d" ),
1045+ emcmotCommand -> id . id , emcmotCommand -> tag . filename , emcmotCommand -> tag . fields [ 0 ] , res_addline );
10461046 emcmotStatus -> commandStatus = EMCMOT_COMMAND_BAD_EXEC ;
10471047 tpAbort (& emcmotInternal -> coord_tp );
10481048 SET_MOTION_ERROR_FLAG (1 );
@@ -1072,7 +1072,7 @@ void emcmotCommandHandler_locked(void *arg, long servo_period)
10721072 emcmotStatus -> commandStatus = EMCMOT_COMMAND_INVALID_COMMAND ;
10731073 SET_MOTION_ERROR_FLAG (1 );
10741074 break ;
1075- } else if (!inRange (emcmotCommand -> pos , emcmotCommand -> id , "Circular" )) {
1075+ } else if (!inRange (emcmotCommand -> pos , emcmotCommand -> id . line_number , "Circular" )) {
10761076 emcmotStatus -> commandStatus = EMCMOT_COMMAND_INVALID_PARAMS ;
10771077 tpAbort (& emcmotInternal -> coord_tp );
10781078 SET_MOTION_ERROR_FLAG (1 );
@@ -1097,8 +1097,8 @@ void emcmotCommandHandler_locked(void *arg, long servo_period)
10971097 emcmotCommand -> acc , emcmotCommand -> ini_maxjerk , emcmotStatus -> enables_new ,
10981098 issue_atspeed , emcmotCommand -> tag );
10991099 if (res_addcircle < 0 ) {
1100- reportError (_ ("can't add circular move at line %d, error code %d" ),
1101- emcmotCommand -> id , res_addcircle );
1100+ reportError (_ ("can't add circular move id %ld at %s line %d, error code %d" ),
1101+ emcmotCommand -> id . id , emcmotCommand -> tag . filename , emcmotCommand -> tag . fields [ 0 ] , res_addcircle );
11021102 emcmotStatus -> commandStatus = EMCMOT_COMMAND_BAD_EXEC ;
11031103 tpAbort (& emcmotInternal -> coord_tp );
11041104 SET_MOTION_ERROR_FLAG (1 );
@@ -1449,7 +1449,7 @@ void emcmotCommandHandler_locked(void *arg, long servo_period)
14491449 emcmotStatus -> commandStatus = EMCMOT_COMMAND_INVALID_COMMAND ;
14501450 SET_MOTION_ERROR_FLAG (1 );
14511451 break ;
1452- } else if (!inRange (emcmotCommand -> pos , emcmotCommand -> id , "Probe" )) {
1452+ } else if (!inRange (emcmotCommand -> pos , emcmotCommand -> id . line_number , "Probe" )) {
14531453 emcmotStatus -> commandStatus = EMCMOT_COMMAND_INVALID_PARAMS ;
14541454 tpAbort (& emcmotInternal -> coord_tp );
14551455 SET_MOTION_ERROR_FLAG (1 );
@@ -1519,7 +1519,7 @@ void emcmotCommandHandler_locked(void *arg, long servo_period)
15191519 emcmotStatus -> commandStatus = EMCMOT_COMMAND_INVALID_COMMAND ;
15201520 SET_MOTION_ERROR_FLAG (1 );
15211521 break ;
1522- } else if (!inRange (emcmotCommand -> pos , emcmotCommand -> id , "Rigid tap" )) {
1522+ } else if (!inRange (emcmotCommand -> pos , emcmotCommand -> id . line_number , "Rigid tap" )) {
15231523 emcmotStatus -> commandStatus = EMCMOT_COMMAND_INVALID_PARAMS ;
15241524 tpAbort (& emcmotInternal -> coord_tp );
15251525 SET_MOTION_ERROR_FLAG (1 );
@@ -1545,8 +1545,8 @@ void emcmotCommandHandler_locked(void *arg, long servo_period)
15451545 emcmotCommand -> tag );
15461546 if (res_addtap < 0 ) {
15471547 emcmotStatus -> atspeed_next_feed = 0 ; /* rigid tap always waits for spindle to be at-speed */
1548- reportError (_ ("can't add rigid tap move at line %d, error code %d" ),
1549- emcmotCommand -> id , res_addtap );
1548+ reportError (_ ("can't add rigid tap move id %ld at %s line %d, error code %d" ),
1549+ emcmotCommand -> id . id , emcmotCommand -> tag . filename , emcmotCommand -> tag . fields [ 0 ] , res_addtap );
15501550 tpAbort (& emcmotInternal -> coord_tp );
15511551 SET_MOTION_ERROR_FLAG (1 );
15521552 break ;
0 commit comments