From 74a0003fea4087de8e9f03b6f828c45d255bcd4a Mon Sep 17 00:00:00 2001 From: MDC Service Date: Mon, 23 May 2022 11:17:34 +0200 Subject: initial check in firmware files --- software/main/etc.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 software/main/etc.cpp (limited to 'software/main/etc.cpp') 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"); +} -- cgit v1.2.3