From 3b2c2cf6b2af9e76b343a5a8fc8e9245f240690d Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sun, 29 May 2022 16:27:29 +0200 Subject: serial parsing working on client --- client/errcatch.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 client/errcatch.c (limited to 'client/errcatch.c') diff --git a/client/errcatch.c b/client/errcatch.c new file mode 100644 index 0000000..e8d696a --- /dev/null +++ b/client/errcatch.c @@ -0,0 +1,19 @@ +#include "../shared/errcatch.h" + +void w2_errcatch_handle_error(w2_s_error *error) { + // TODO: handle more error types + switch (error->code) { + case W2_E_WARN_UNCAUGHT_ERROR: { + break; + } + default: { + g_w2_error_uncaught = true; +#ifdef W2_SIM + simwarn("Uncaught/unhandled error found with code 0x%02x\n", error->code); +#endif + } + } + + return; +} + -- cgit v1.2.3