blob: 41cbb28abd0dd2235731d4541e9e2b8c315fc7fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
# Clear axis info notifications
# use in gcode subroutines and/or connect to pushbutton
# M1nn files must exist _before_ starting emc
# in the [DISPLAY]PROGRAM_PREFIX
# or in a dir specified by [RS274NGC]USER_M_PATH
# the pin for axisui.notifications-clear-info is in emc-2.4pre
# using an earlier version will print error to stdout
halcmd setp axisui.notifications-clear-info 1
sleep .100 ;# requires a sleep that does <1
halcmd setp axisui.notifications-clear-info 0
# if a M1nn command fails and its script exits with nonzero status,
# the gcode program exits. So always exit 0, and make sure
# the M1nn command prints a message in order to keep on going.
exit 0
|