Skip to content

Commit 4803bb1

Browse files
committed
Create an EMC error at start of motion when there is no realtime
1 parent a04c14f commit 4803bb1

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/emc/motion/motion.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,14 @@ int rtapi_app_main(void)
413413

414414
old_handler = rtapi_get_msg_handler();
415415
rtapi_set_msg_handler(emc_message_handler);
416+
417+
//Warn user if no realtime is available
418+
//This has to be done after rtapi_set_msg_handler() so
419+
//it propagates to all GUI's that handle motion errors
420+
if(rtapi_is_realtime() == 0) {
421+
rtapi_print_msg(RTAPI_MSG_ERR, "MOTION: no realtime detected.\n");
422+
}
423+
416424
return 0;
417425
}
418426

0 commit comments

Comments
 (0)