Skip to content

Commit

Permalink
remove accidental debug stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
flightlessmango committed Oct 31, 2023
1 parent 48f8db4 commit 0849ae4
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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");
}
}

Expand Down

0 comments on commit 0849ae4

Please sign in to comment.