Skip to content

Commit

Permalink
* Updated dependencies: iwy_master 0.2.3 which conatins fix for whte-…
Browse files Browse the repository at this point in the history
…mode philip1986/iwy_master#2

* Fixed typos
  • Loading branch information
mwittig committed Dec 22, 2015
1 parent f9f8ff2 commit 685e329
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"bluebird": "^3.1.1",
"cassert": "^0.1.2",
"color": "^0.8.0",
"iwy_master": "0.2.2",
"iwy_master": "0.2.3",
"node-milight-promise": ">=0.0.3",
"node-milight-rf24": ">=0.1.1",
"lodash": "^3.10.1",
Expand Down
6 changes: 3 additions & 3 deletions ui/led-light.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ $(document).on 'templateinit', (event) ->
_onLocalChange: (element, fn) ->
timeout = 500 # ms

# only exceute one command at the time
# delay the callback to protect the device aginst overflow
# only execute one command at the time
# delay the callback to protect the device against overflow
queue = async.queue (arg, cb) =>
fn.call(@, arg)
.done( (data) ->
Expand All @@ -72,7 +72,7 @@ $(document).on 'templateinit', (event) ->
return if payload?.origin is 'remote'
return if @[element]?() is $(e.target).val()
# flush queue to do not pile up commands
# latest command has highest prioraty
# latest command has highest priority
queue.kill() if queue.length() > 2
queue.push $(e.target).val()

Expand Down

0 comments on commit 685e329

Please sign in to comment.