/* Function for decoding a received SLIP escape byte. It will ensure correct decoding of the byte following the SLIP escape byte.  */
static void handle_rx_byte_esc(uint8_t byte)
/* Function for decoding a received SLIP escape byte. It will ensure correct decoding of the byte following the SLIP escape byte.  */
static void handle_rx_byte_esc(uint8_t byte)
{
    switch (byte)
    {
        case APP_SLIP_END:
            handle_slip_end();
            break;
        case APP_SLIP_ESC_END:
            mp_rx_buffer[m_rx_received_count++] = APP_SLIP_END;
            break;
        case APP_SLIP_ESC_ESC:
            mp_rx_buffer[m_rx_received_count++] = APP_SLIP_ESC;
            break;
        default:
            mp_rx_buffer[m_rx_received_count++] = byte;
            break;
    }
    handle_rx_byte = handle_rx_byte_default;
}