From 0849ae42b87b39427d26621bbd5f9084a356c302 Mon Sep 17 00:00:00 2001 From: flightlessmango Date: Tue, 31 Oct 2023 15:56:02 +0100 Subject: [PATCH] remove accidental debug stuff --- src/app/main.cpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/app/main.cpp b/src/app/main.cpp index dc1b1483..dadf6e13 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -81,7 +81,6 @@ static void ctrl_thread(){ const struct mangoapp_ctrl_msgid1_v1 *mangoapp_ctrl_v1 = (const struct mangoapp_ctrl_msgid1_v1*) raw_msg; memset(raw_msg, 0, sizeof(raw_msg)); msgrcv(msgid, (void *) raw_msg, sizeof(raw_msg), 2, 0); - printf("got msg\n"); switch (mangoapp_ctrl_v1->log_session) { case 0: // Keep as-is @@ -127,23 +126,7 @@ static void ctrl_thread(){ break; } } - printf("before debug check\n"); - if (mangoapp_ctrl_v1->debug){ - struct mangoapp_ctrl_msgid1_v1 ctrl_msg; - ctrl_msg.hdr.ctrl_msg_type = 1; - ctrl_msg.hdr.msg_type = 3; - char resp[10240] = ""; - for (auto& option : HUDElements.options){ - strcat(resp, option.first.c_str()); - strcat(resp, "\n"); - } - strcat(ctrl_msg.debug_response, resp); - printf("sending msg\n"); - int ret = msgsnd(msgid, &raw_msg, sizeof(raw_msg), IPC_NOWAIT); - printf("ret: %i\n", ret); - } mangoapp_cv.notify_one(); - printf("back to top\n"); } }