svghmi/svghmi.js
branchsvghmi
changeset 3190 80dd371e15bb
parent 3152 c80a5a7198ea
child 3206 4fd7bd10e606
equal deleted inserted replaced
3189:0733114a2090 3190:80dd371e15bb
   311     // DON'T DO THAT unless read_iterator in svghmi.c modifies wbuf as well, not only rbuf
   311     // DON'T DO THAT unless read_iterator in svghmi.c modifies wbuf as well, not only rbuf
   312     // cache[index] = value;
   312     // cache[index] = value;
   313 };
   313 };
   314 
   314 
   315 function apply_hmi_value(index, new_val) {
   315 function apply_hmi_value(index, new_val) {
   316     let old_val = cache[index]
   316     let old_val = cache[index];
   317     if(new_val != undefined && old_val != new_val)
   317     if(new_val != undefined && old_val != new_val)
   318         send_hmi_value(index, new_val);
   318         send_hmi_value(index, new_val);
   319     return new_val;
   319     return new_val;
   320 }
   320 }
   321 
   321