fn skip_unhandled_msg(&mut self) -> Result<(), DI::InterfaceError> {
        // The length sent in the header is defined as being that of the payload only.
        // It does not include the Preamble, Message Class, Message ID, Length, or CRC fields.
        // The number format of the length field is a Little-Endian unsigned 16-bit integer.
        let msg_len = ((self.read_buf[2] as u16)
            + ((self.read_buf[3] as u16) << 8)) as usize;
        let max_pay_idx = UBX_HEADER_LEN + msg_len;
        let max_msg_idx = (max_pay_idx + UBX_CKSUM_LEN).min(READ_BUF_LEN);
        self.di
            .read_many(&mut self.read_buf[UBX_HEADER_LEN..max_msg_idx])?;

        Ok(())
    }
/// Handle a message we don't recognize, by reading past it
Handle a message we don't recognize, by reading past it
Handle a message we don ' t recognize by reading past it
fn skip_unhandled_msg(&mut self) -> Result<(), DI::InterfaceError> {
        // The length sent in the header is defined as being that of the payload only.
        // It does not include the Preamble, Message Class, Message ID, Length, or CRC fields.
        // The number format of the length field is a Little-Endian unsigned 16-bit integer.
        let msg_len = ((self.read_buf[2] as u16)
            + ((self.read_buf[3] as u16) << 8)) as usize;
        let max_pay_idx = UBX_HEADER_LEN + msg_len;
        let max_msg_idx = (max_pay_idx + UBX_CKSUM_LEN).min(READ_BUF_LEN);
        self.di
            .read_many(&mut self.read_buf[UBX_HEADER_LEN..max_msg_idx])?;
        Ok(())
    }
fn skip_unhandled_msg ( & mut self ) -> Result < ( ) , DI :: InterfaceError > { // The length sent in the header is defined as being that of the payload only. // It does not include the Preamble, Message Class, Message ID, Length, or CRC fields. // The number format of the length field is a Little-Endian unsigned 16-bit integer. let msg_len = ( ( self . read_buf [ 2 ] as u16 ) + ( ( self . read_buf [ 3 ] as u16 ) << 8 ) ) as usize ; let max_pay_idx = UBX_HEADER_LEN + msg_len ; let max_msg_idx = ( max_pay_idx + UBX_CKSUM_LEN ) . min ( READ_BUF_LEN ) ; self . di . read_many ( & mut self . read_buf [ UBX_HEADER_LEN .. max_msg_idx ] ) ? ; Ok ( ( ) ) }
Handle a message we don't recognize, by reading past it
Handle a message we don ' t recognize by reading past it
&mut self
&mut self