Moved gpio reconfiguration before colony emit is run