mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-31 00:23:57 +00:00
Make sure the led is off after blinking
This commit is contained in:
parent
2525241669
commit
f5760ffd09
@ -64,6 +64,7 @@ app.post('/blink', (req, res) ->
|
||||
interval = setInterval(toggleLed, settings.BLINK_STEP)
|
||||
setTimeout(->
|
||||
clearInterval(interval)
|
||||
fs.writeFileSync(settings.LED_FILE, 0)
|
||||
res.send(200)
|
||||
, 5000)
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user