fix m_uart_read and m_i2c_read