Minor bug fixes to status LED blinking code