diff -r c5ba1e77f054 -r ddb2c4668a6b svghmi/svghmi.c --- a/svghmi/svghmi.c Fri Oct 11 12:03:14 2019 +0200 +++ b/svghmi/svghmi.c Tue Oct 15 17:14:48 2019 +0200 @@ -242,8 +242,7 @@ typedef enum { setval = 0, reset = 1, - subscribe = 2, - unsubscribe = 3 + subscribe = 2 } cmd_from_JS; int svghmi_recv_dispatch(uint32_t size, const uint8_t *ptr){ @@ -320,20 +319,6 @@ } break; - case unsubscribe: - { - uint32_t index = *(uint32_t*)(cursor); - - if(index < HMI_ITEM_COUNT) - { - hmi_tree_item_t *dsc = &hmi_tree_item[index]; - reset_iterator(index, dsc); - } - else return -EINVAL; - - progress = sizeof(uint32_t) /* index */; - } - break; } cursor += progress; }