diff options
author | Devaev Maxim <[email protected]> | 2020-09-10 10:22:44 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-09-10 10:22:44 +0300 |
commit | cee24e56d2cd6f7f8130b48908bbfb4029fcddbf (patch) | |
tree | 156dd7af194509ef1e2569c58a03a2d4c3d2d91f /web | |
parent | 7baf4bc07e2d1cf9374fa0c95cb5197cb36aa5e8 (diff) |
nowait
Diffstat (limited to 'web')
-rw-r--r-- | web/share/js/kvm/gpio.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/web/share/js/kvm/gpio.js b/web/share/js/kvm/gpio.js index 4044e458..cbbe219b 100644 --- a/web/share/js/kvm/gpio.js +++ b/web/share/js/kvm/gpio.js @@ -99,8 +99,7 @@ export function Gpio() { tools.setOnClick($(`gpio-switch-${channel}`), () => __switchChannel(channel)); } for (let channel of buttons) { - let wait = (model.scheme.outputs[channel].pulse.delay <= 1); - tools.setOnClick($(`gpio-button-${channel}`), () => __pulseChannel(channel, wait)); + tools.setOnClick($(`gpio-button-${channel}`), () => __pulseChannel(channel)); } self.setState(__state); @@ -150,8 +149,8 @@ export function Gpio() { __sendPost(`/api/gpio/switch?channel=${channel}&state=${to}`); }; - var __pulseChannel = function(channel, wait) { - __sendPost(`/api/gpio/pulse?channel=${channel}&wait=${wait ? "1" : "0"}`); + var __pulseChannel = function(channel) { + __sendPost(`/api/gpio/pulse?channel=${channel}`); }; var __sendPost = function(url) { |