Renew uart code a bit