From dcb1c148d9a1f0ebf38f69bf57cda89b803838b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20=C3=96stman?= Date: Mon, 8 Apr 2019 00:01:04 +0200 Subject: [PATCH] #5 only set I2C_BUFFER_LENGTH if not already defined, this fixes compile warnings on ESP32 --- src/SparkFun_Ublox_Arduino_Library.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SparkFun_Ublox_Arduino_Library.h b/src/SparkFun_Ublox_Arduino_Library.h index 4d9235a..73e76ba 100644 --- a/src/SparkFun_Ublox_Arduino_Library.h +++ b/src/SparkFun_Ublox_Arduino_Library.h @@ -62,10 +62,9 @@ //#elif __MK20DX256__ //Teensy -//#elif ARDUINO_ARCH_ESP32 -//ESP32 based platforms +#endif -#else +#ifndef I2C_BUFFER_LENGTH //The catch-all default is 32 #define I2C_BUFFER_LENGTH 32 @@ -369,3 +368,4 @@ class SFE_UBLOX_GPS }; #endif +