envy / esp-knx-ip

A KNX/IP library for the ESP8266 with Arduino
MIT License
135 stars 49 forks source link

Compile error with 2.5.0-beta1 - invalid operands of types 'double' and 'int' to binary 'operator&' #65

Closed suprimex closed 5 years ago

suprimex commented 5 years ago

Auto updated to hardware 2.5.0-beta1, Arduino 1.8.5, ESP KNX IP Library 0.5.1

Error: <..>\Documents\Arduino\libraries\esp-knx-ip-0.5.1\esp-knx-ip-send.cpp: In member function 'void ESPKNXIP::send_2byte_float(const address_t&, knx_command_type_t, float)':

<..>\Documents\Arduino\libraries\esp-knx-ip-0.5.1\esp-knx-ip-send.cpp:136:22: error: invalid operands of types 'double' and 'int' to binary 'operator&'

long m = round(v) & 0x7FF;

                  ^

.... exit status 1 Error compiling for board Generic ESP8266 Module.

ascillato commented 5 years ago

Fixed with PR https://github.com/envy/esp-knx-ip/pull/66