aboutsummaryrefslogtreecommitdiff
path: root/software/main/etc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'software/main/etc.cpp')
-rw-r--r--software/main/etc.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/software/main/etc.cpp b/software/main/etc.cpp
new file mode 100644
index 0000000..a240398
--- /dev/null
+++ b/software/main/etc.cpp
@@ -0,0 +1,17 @@
+/*
+ * etc.cpp
+ *
+ * Created on: 26.02.2022
+ * Author: steffen
+ */
+#include "etc.h"
+
+void DumpBuf(void *buf, int len) {
+ int i, c;
+ char *lb = (char*) buf;
+ for (i = 0; i < len; i++) {
+ c = (char) *lb++;
+ printf("%02X ", c);
+ }
+ printf("\n");
+}