svghmi/svghmi.c
branchsvghmi
changeset 2798 ddb2c4668a6b
parent 2789 ba0dd2ec6dc4
child 2799 f5da343b9b63
--- 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;
     }