uart_commands.c: small cleanups