Skip to content

Compile Warnings #5

@anthonyjclarke

Description

@anthonyjclarke

Using Arduino IDE 1.8.2 I get these warnings, any suggestions on fixing?

/Volumes/Macintosh HD 2/Users/Documents/Arduino/libraries/WEMOS_SHT3x_Arduino_Library-master/src/WEMOS_SHT3X.cpp: In member function 'void SHT3X::get()':
/Volumes/Macintosh HD 2/Users/Documents/Arduino/libraries/WEMOS_SHT3x_Arduino_Library-master/src/WEMOS_SHT3X.cpp:28:30: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second: [enabled by default]
Wire.requestFrom(_address, 6);
^
In file included from /Volumes/Macintosh HD 2/Users/Documents/Arduino/libraries/WEMOS_SHT3x_Arduino_Library-master/src/WEMOS_SHT3X.h:12:0,
from /Volumes/Macintosh HD 2/Users/Documents/Arduino/libraries/WEMOS_SHT3x_Arduino_Library-master/src/WEMOS_SHT3X.cpp:1:
/Volumes/Macintosh HD 2/Users/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/Wire/Wire.h:69:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int)
uint8_t requestFrom(int, int);
^
/Volumes/Macintosh HD 2/Users/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/libraries/Wire/Wire.h:67:13: note: candidate 2: uint8_t TwoWire::requestFrom(uint8_t, uint8_t)
uint8_t requestFrom(uint8_t, uint8_t);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions