changed parameter of uart_putframe to do call by reference instead of
call by value