From 7c9afe1982c1c3778e65740fa2e161621d380285 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sat, 7 Jan 2023 14:37:37 +0100 Subject: remove test code from serial.cpp --- confui/serial.cpp | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/confui/serial.cpp b/confui/serial.cpp index 6a58fc2..7a9e102 100644 --- a/confui/serial.cpp +++ b/confui/serial.cpp @@ -97,28 +97,6 @@ void cd_cmd_ping(cd_s_bin* data) { cd_s_bin* response = cd_cmd_res_status((cd_e_scmds) cast->opcode, cast->id, false); cd_pclient_send(response); free(response); - response = nullptr; - - // cd_uuid_t test_node_light_addrs[] = { - // { 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xde, 0xad, 0xbe, 0xef, 0x00, 0x00, 0x00, 0x00 }, - // }; - // cd_s_cmd_node* test_node = cd_cmd_node_alloc("gert", { - // .uuid = { 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0xde, 0xad, 0xbe, 0xef, 0x00, 0x00, 0x00, 0x00 }, - // .address = { 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, }, - // .light_on = false, - // .provisioned = false, - // .button_pub = 0xdeadbeef, - // }, 1, test_node_light_addrs); - - // cd_s_cmd_node* nodes[] = { test_node }; - // cd_s_cmd_response_get_node* response_get_nodes = cd_cmd_get_node_res_from_node_arr(1, nodes); - // free(test_node); - - // cd_s_bin* response = cd_cmd_res(CD_CMD_GET_NODE, 0xf88f, cd_cmd_response_get_node_sizeof(response_get_nodes), (uint8_t*) response_get_nodes); - // free(response_get_nodes); - - // cd_pclient_send(response); - // free(response); } void cd_cmd_response_get_node_parse_node(cd_s_cmd_node* node) { -- cgit v1.2.3