aboutsummaryrefslogtreecommitdiff
path: root/tfmx/tfmxdebug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tfmx/tfmxdebug.cpp')
-rw-r--r--tfmx/tfmxdebug.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tfmx/tfmxdebug.cpp b/tfmx/tfmxdebug.cpp
index f6ef03dc08..0c411582f8 100644
--- a/tfmx/tfmxdebug.cpp
+++ b/tfmx/tfmxdebug.cpp
@@ -120,6 +120,15 @@ void displayTrackstep(const void *const vptr) {
}
}
+void displayMacroStep(const void *const vptr, int chan, int index) {
+ const byte *const macroData = (const byte *const)vptr;
+
+ if (macroData[0] < ARRAYSIZE(macrocmds))
+ debug("%02X %02X %s %02X%02X%02X", chan, index, macrocmds[macroData[0]], macroData[1], macroData[2], macroData[3]);
+ else
+ debug("%02X %02X Unkown Macro #%02X %02X%02X%02X", chan, index, macroData[0], macroData[1], macroData[2], macroData[3]);
+}
+
void displayMacroStep(const void *const vptr) {
const byte *const macroData = (const byte *const)vptr;