Open Adrianahwjsgsj opened 4 years ago
i tried add softwareserial library to arduino libraries and im geting another error
In file included from C:\Users\marti\AppData\Local\Temp\arduino_modified_sketch_319669\sketch_aug17a.ino:23:0:
C:\Users\marti\Documents\Arduino\libraries\HUSKYLENS/HUSKYLENS.h: In member function 'bool HUSKYLENS::processReturn()':
C:\Users\marti\Documents\Arduino\libraries\HUSKYLENS/HUSKYLENS.h:171:90: error: no matching function for call to 'max(int16_t&, int)'
protocolPtr = (Protocol_t) realloc(protocolPtr, max(protocolInfo.protocolSize, 1) sizeof(Protocol_t));
^
In file included from c:\users\marti\documents\arduinodata\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\algorithm:62:0,
from C:\Users\marti\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.4\cores\esp32/Arduino.h:142,
from sketch\sketch_aug17a.ino.cpp:1:
c:\users\marti\documents\arduinodata\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\bits\stl_algo.h:3463:5: note: candidate: template<class _Tp, class _Compare> _Tp std::max(std::initializer_list<_Tp>, _Compare)
max(initializer_list<_Tp> l, _Compare __comp)
^
c:\users\marti\documents\arduinodata\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\bits\stl_algo.h:3463:5: note: template argument deduction/substitution failed:
In file included from C:\Users\marti\AppData\Local\Temp\arduino_modified_sketch_319669\sketch_aug17a.ino:23:0:
C:\Users\marti\Documents\Arduino\libraries\HUSKYLENS/HUSKYLENS.h:171:90: note: mismatched types 'std::initializer_list<_Tp>' and 'short int'
protocolPtr = (Protocol_t) realloc(protocolPtr, max(protocolInfo.protocolSize, 1) sizeof(Protocol_t));
^
In file included from c:\users\marti\documents\arduinodata\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\algorithm:62:0,
from C:\Users\marti\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.4\cores\esp32/Arduino.h:142,
from sketch\sketch_aug17a.ino.cpp:1:
c:\users\marti\documents\arduinodata\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0\bits\stl_algo.h:3457:5: note: candidate: template
Modify HUSKYLENS.h line 376 by -> currentIndex = _min(currentIndex, result); line 231 by -> protocolPtr = (Protocol_t )realloc(protocolPtr, _max(protocolInfo.protocolSize, 1) sizeof(Protocol_t)); and line 707 by -> uint8_t data[7] = {length};
I've tested in NodeMCU 1.0
im using object tracking code from examples and geting thit error: In file included from C:\Users\marti\AppData\Local\Temp\arduino_modified_sketch_33040\sketch_aug17a.ino:23:0: C:\Users\marti\Documents\Arduino\libraries\HUSKYLENS/HUSKYLENS.h:16:28: fatal error: SoftwareSerial.h: No such file or directory compilation terminated. exit status 1 Nastala chyba při kompilaci u desky ESP32 Dev Module.