Fixes to sleep LED

Hi tmk
I have made some small fixes to the sleep LED code.