mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-06 11:10:27 +00:00
Update bluebird and use the delay helper.
This commit is contained in:
parent
b65e3fd3f9
commit
2d6f0a7e6d
@ -13,7 +13,7 @@
|
|||||||
"csr-gen": "~0.2.1",
|
"csr-gen": "~0.2.1",
|
||||||
"dockerode": "~0.2.5",
|
"dockerode": "~0.2.5",
|
||||||
"knex": "~0.5.1",
|
"knex": "~0.5.1",
|
||||||
"bluebird": "~0.11.5-0",
|
"bluebird": "~1.1.1",
|
||||||
"JSONStream": "~0.7.1",
|
"JSONStream": "~0.7.1",
|
||||||
"event-stream": "~3.0.20",
|
"event-stream": "~3.0.20",
|
||||||
"sqlite3": "~2.1.19"
|
"sqlite3": "~2.1.19"
|
||||||
|
@ -10,7 +10,7 @@ LED_FILE = '/sys/class/leds/led0/brightness'
|
|||||||
|
|
||||||
blink = (ms = 200) ->
|
blink = (ms = 200) ->
|
||||||
fs.writeFileAsync(LED_FILE, 1)
|
fs.writeFileAsync(LED_FILE, 1)
|
||||||
.then -> utils.delay(ms)
|
.delay(ms)
|
||||||
.then -> fs.writeFileAsync(LED_FILE, 0)
|
.then -> fs.writeFileAsync(LED_FILE, 0)
|
||||||
|
|
||||||
api.post '/v1/blink', (req, res) ->
|
api.post '/v1/blink', (req, res) ->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user