k10_uart check length instead of constant