HuskyLens / HUSKYLENSArduino

75 stars 48 forks source link

Alter code around line 706 to fix compilation errors. #13

Open Robert-Proaps opened 2 years ago

Robert-Proaps commented 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.