Skip to content

Commit

Permalink
Merge pull request #452 from monome/sleep-fix-again
Browse files Browse the repository at this point in the history
add cleanup before sleep
  • Loading branch information
antonhornquist authored Jul 5, 2018
2 parents ad41894 + bd30cd0 commit de89843
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1345,6 +1345,7 @@ m.key[pSLEEP] = function(n,z)
m.sleep = true
menu.redraw()
norns.state.save()
cleanup()
if tape.mode == tREC then tape_stop_rec() end
norns.audio.output_level(-100)
gain_hp(0)
Expand Down

0 comments on commit de89843

Please sign in to comment.