uart: fix return value of send functions