Fix issue barcode and smartcard read uart may not be switch to gpio mode if not enabled.