Trying to access the LED GPIO port before it was set up caused a hard fault. The prior submission made a quick fix to just disable the LED. This submission fixes the problem so the LED can be used after the GPIO port has been configured.
Removed compile warning from debug build.