Open Robert-Proaps opened 2 years ago
I changed the code at line 706 from
uint8_t length = version.length(); uint8_t data[length + 2] = {length};
to
uint8_t length = version.length(); uint8_t data[length +2]; data[0]=length;
This change fixes the following error
"libraries\HUSKYLENS/HUSKYLENS.h:706:43: error: variable-sized object 'data' may not be initialized uint8_t data[length + 2] = {length}; ^"
This error would prevent any code that includes the HUSKYLENS.h library from compiling.
I changed the code at line 706 from
uint8_t length = version.length(); uint8_t data[length + 2] = {length};
to
uint8_t length = version.length(); uint8_t data[length +2]; data[0]=length;
This change fixes the following error
"libraries\HUSKYLENS/HUSKYLENS.h:706:43: error: variable-sized object 'data' may not be initialized uint8_t data[length + 2] = {length}; ^"
This error would prevent any code that includes the HUSKYLENS.h library from compiling.