arduino-libraries / ArduinoBLE

ArduinoBLE library for Arduino
GNU Lesser General Public License v2.1
315 stars 205 forks source link

Compilation failed when _BLE_TRACE_ enabled #355

Open vovagorodok opened 8 months ago

vovagorodok commented 8 months ago
.pio/libdeps/nano_33_iot/ArduinoBLE/src/utility/L2CAPSignaling.cpp: In member function 'virtual void L2CAPSignalingClass::handleSecurityData(uint16_t, uint8_t, uint8_t*)':
.pio/libdeps/nano_33_iot/ArduinoBLE/src/utility/L2CAPSignaling.cpp:233:21: error: 'X' was not declared in this scope
     btct.printBytes(X,16);
                     ^
.pio/libdeps/nano_33_iot/ArduinoBLE/src/utility/L2CAPSignaling.cpp:235:21: error: 'Y' was not declared in this scope
     btct.printBytes(Y,16);
                     ^
.pio/libdeps/nano_33_iot/ArduinoBLE/src/utility/L2CAPSignaling.cpp: In member function 'virtual void L2CAPSignalingClass::smCalculateLTKandConfirm(uint16_t, uint8_t*)':
.pio/libdeps/nano_33_iot/ArduinoBLE/src/utility/L2CAPSignaling.cpp:416:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i=0; i<sizeof(Eb); i++){
                  ~^~~~~~~~
*** [.pio/build/nano_33_iot/lib42d/ArduinoBLE/utility/L2CAPSignaling.cpp.o] Error 1