Skip to content

Commit 1650ca7

Browse files
committed
Fix command.c debug messages
1 parent 4950963 commit 1650ca7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/emc/motion/command.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,6 @@ void emcmotCommandHandler_locked(void *arg, long servo_period)
503503
does yet), and if in free mode, it disables the free mode traj
504504
planners which stops joint motion */
505505
rtapi_print_msg(RTAPI_MSG_DBG, "ABORT");
506-
rtapi_print_msg(RTAPI_MSG_DBG, " %d", joint_num);
507506
/* check for coord or free space motion active */
508507
if (GET_MOTION_TELEOP_FLAG()) {
509508
axis_jog_abort_all(0);
@@ -536,6 +535,7 @@ void emcmotCommandHandler_locked(void *arg, long servo_period)
536535
case EMCMOT_JOG_ABORT:
537536
/* abort one joint number or axis number */
538537
/* can happen at any time */
538+
rtapi_print_msg(RTAPI_MSG_DBG, "JOG_ABORT: %i", joint_num);
539539
if (GET_MOTION_TELEOP_FLAG()) {
540540
/* tell teleop planner to stop */
541541
if ((emcmotCommand->axis >= 0) && (emcmotCommand->axis < EMCMOT_MAX_AXIS)) {
@@ -1590,7 +1590,7 @@ void emcmotCommandHandler_locked(void *arg, long servo_period)
15901590

15911591
case EMCMOT_SET_SPINDLE_PARAMS:
15921592
rtapi_print_msg(RTAPI_MSG_DBG, "SPINDLE_SETUP: spindle %d/%d max_pos %f min_pos %f"
1593-
"max_neg %f min_neg %f, home: %f, %f, %d\n",
1593+
"max_neg %f min_neg %f, home: %f, %f, %d",
15941594
emcmotCommand->spindle, emcmotConfig->numSpindles, emcmotCommand->maxLimit,
15951595
emcmotCommand->min_pos_speed, emcmotCommand->max_neg_speed, emcmotCommand->minLimit,
15961596
emcmotCommand->search_vel, emcmotCommand->home, emcmotCommand->home_sequence);
@@ -1871,6 +1871,7 @@ void emcmotCommandHandler_locked(void *arg, long servo_period)
18711871
break;
18721872

18731873
case EMCMOT_SET_OFFSET:
1874+
rtapi_print_msg(RTAPI_MSG_DBG, "SET_OFFSET");
18741875
emcmotStatus->tool_offset = emcmotCommand->tool_offset;
18751876
break;
18761877

@@ -1941,9 +1942,11 @@ void emcmotCommandHandler_locked(void *arg, long servo_period)
19411942
emcmotStatus->commandStatus = EMCMOT_COMMAND_UNKNOWN_COMMAND;
19421943
break;
19431944
case EMCMOT_SET_MAX_FEED_OVERRIDE:
1945+
rtapi_print_msg(RTAPI_MSG_DBG, "SET_MAX_FEED_OVERRIDE");
19441946
emcmotConfig->maxFeedScale = emcmotCommand->maxFeedScale;
19451947
break;
19461948
case EMCMOT_SETUP_ARC_BLENDS:
1949+
rtapi_print_msg(RTAPI_MSG_DBG, "SETUP_ARC_BLENDS");
19471950
emcmotConfig->arcBlendEnable = emcmotCommand->arcBlendEnable;
19481951
emcmotConfig->arcBlendFallbackEnable = emcmotCommand->arcBlendFallbackEnable;
19491952
emcmotConfig->arcBlendOptDepth = emcmotCommand->arcBlendOptDepth;
@@ -1952,6 +1955,7 @@ void emcmotCommandHandler_locked(void *arg, long servo_period)
19521955
emcmotConfig->arcBlendTangentKinkRatio = emcmotCommand->arcBlendTangentKinkRatio;
19531956
break;
19541957
case EMCMOT_SET_PROBE_ERR_INHIBIT:
1958+
rtapi_print_msg(RTAPI_MSG_DBG, "SET_PROBE_ERR_INHIBIT");
19551959
emcmotConfig->inhibit_probe_jog_error = emcmotCommand->probe_jog_err_inhibit;
19561960
emcmotConfig->inhibit_probe_home_error = emcmotCommand->probe_home_err_inhibit;
19571961
break;

0 commit comments

Comments
 (0)