fix to set status LED pin as an output pin