Skip to content

Commit 9ca3b04

Browse files
authored
Merge pull request #48 from niabassey/particle_platform_compatibility
Particle platform compatibility
2 parents b7bb3db + 945b283 commit 9ca3b04

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/sfe_bus.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,10 @@ namespace SparkFun_UBLOX_GNSS
465465
if (length == 0)
466466
return 0;
467467

468+
#ifdef PARTICLE
469+
return _serialPort->readBytes((char *)data, length);
470+
#else
468471
return _serialPort->readBytes(data, length);
472+
#endif
469473
}
470474
}

0 commit comments

Comments
 (0)