Skip to content

Commit 494d6b9

Browse files
BMP180: Disambiguate Wire.begin for [email protected]
A four-parameter overload of Wire.begin was added to implement I2C slaves in [email protected] (espressif/arduino-esp32@f9f70d2). GCC 8.4.0 can't disambiguate the three-argument call when the first and third arguments are signed or uint16_t.
1 parent 14f76ab commit 494d6b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BMP180.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ boolean BMP085::begin(uint8_t mode) {
99
mode = BMP085_ULTRAHIGHRES;
1010
oversampling = mode;
1111
//begin(int sdaPin, int sclPin, uint32_t frequency)
12-
Wire.begin(13, 12, 100000);
12+
Wire.begin(13, 12, 100000U);
1313

1414
if (read8(0xD0) != 0x55) return false;
1515

0 commit comments

Comments
 (0)