lathoub / Arduino-AppleMIDI-Library

Send and receive MIDI messages over Ethernet (rtpMIDI or AppleMIDI)
Other
310 stars 66 forks source link

ambiguous overload for 'operator!=' (operand types are 'IPAddress' and 'int') #91

Closed michael-betz closed 4 years ago

michael-betz commented 4 years ago

https://github.com/lathoub/Arduino-AppleMIDI-Library/blob/f2c9ad49a5b9588d4329f8c3930f10be827fb653/src/AppleMIDI.h#L126

please change this line to:

return (dataPort.remoteIP() != INADDR_NONE && participants.size() > 0);

to fix this error:

.pio/libdeps/tesla1/AppleMIDI/src/AppleMIDI.h:126:31: error: ambiguous overload for 'operator!=' (operand types are 'IPAddress' and 'int')