mirror of
https://github.com/adafruit/Adafruit_GPS.git
synced 2026-10-26 22:10:17 +00:00
doxy new Print support
This commit is contained in:
1 parent
dd40ff0d95
commit
70bea470db
2 files changed
+14
-2
No files matched your search
+13
-1
@@ -381,7 +381,12 @@ float Adafruit_GPS::secondsSinceDate() {
|
||||
return (millis()-lastDate) / 1000.;
|
||||
}
|
||||
|
||||
|
||||
/**************************************************************************/
|
||||
/*!
|
||||
@brief How many bytes are available to read - part of 'Print'-class functionality
|
||||
@return Bytes available, 0 if none
|
||||
*/
|
||||
/**************************************************************************/
|
||||
size_t Adafruit_GPS::available(void) {
|
||||
if (paused) return 0;
|
||||
|
||||
@@ -399,6 +404,13 @@ size_t Adafruit_GPS::available(void) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**************************************************************************/
|
||||
/*!
|
||||
@brief Write a byte to the underlying transport - part of 'Print'-class functionality
|
||||
@param c A single byte to send
|
||||
@return Bytes written - 1 on success, 0 on failure
|
||||
*/
|
||||
/**************************************************************************/
|
||||
size_t Adafruit_GPS::write(uint8_t c) {
|
||||
#if (defined(__AVR__) || defined(ESP8266)) && defined(USE_SW_SERIAL)
|
||||
if (gpsSwSerial) {
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@
|
||||
|
||||
#define USE_SW_SERIAL ///< comment this out if you don't want to include software serial in the library
|
||||
#define GPS_DEFAULT_I2C_ADDR 0x10 ///< The default address for I2C transport of GPS data
|
||||
#define GPS_MAX_I2C_TRANSFER 32
|
||||
#define GPS_MAX_I2C_TRANSFER 32 ///< The max number of bytes we'll try to read at once
|
||||
|
||||
#include "Arduino.h"
|
||||
#if (defined(__AVR__) || defined(ESP8266)) && defined(USE_SW_SERIAL)
|
||||
|
||||
Reference in new issue
Block a user