minor bug fixes for UART and SPI

Signed-off-by: msandstedt <michael.sandstedt@gmail.com>