Fixed up LED toggling.

Seems to work properly now. But, something recent seems to have broken file logging...