Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

checkUbloxI2C() should return 0xFF #26

Closed
@aortner

Description

@aortner

From the Ublox Manual:

If there is no data awaiting transmission from the receiver, then this register will deliver the value 0xFF.

line 205:

_i2cPort->requestFrom((uint8_t)_gpsI2Caddress, (uint8_t)2);
if (_i2cPort->available())
{
uint8_t msb = _i2cPort->read();
uint8_t lsb = _i2cPort->read();
bytesAvailable = (uint16_t)msb << 8 | lsb;
}

should we better check for 0xFF ??

if(lsb == 0xFF) return(false);

i think that removes the massive stocks of the lib..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions