add mendel_print_interactive to func.sh for stepping through prints

Signed-off-by: Michael Moon <triffid.hunter@gmail.com>
This commit is contained in:
kieran 2011-03-05 13:34:25 +11:00 committed by Michael Moon
parent 3ee3ee06a1
commit 088f79aa11
1 changed files with 15 additions and 0 deletions

15
func.sh
View File

@ -188,6 +188,21 @@ mendel_print() {
)
}
# Print a gcode file. Press a key after each line. Echos commands and replies.
mendel_print_interactive() {
(
for F in "$@"
do
local IFS=$'\n'
for L in $(< $F)
do
mendel_cmd_hr "$L"
read
done
done
)
}
# Use the debug interface to directly read memory.
# Usage:
# mendel_readsym 0x<address>(:<size>)