Error compiling Raspberry Pi Pico and Huskylens in Arduino

c:\Users\frede\Documents\Arduino\libraries\HUSKYLENS\HuskyLensProtocolCore.c: In function 'husky_lens_protocol_write_begin':
c:\Users\frede\Documents\Arduino\libraries\HUSKYLENS\HuskyLensProtocolCore.c:135:12: error: returning 'uint8_t ()[128]' {aka 'unsigned char ()[128]'} from a function with incompatible return type 'uint8_t *' {aka 'unsigned char *'} [-Wincompatible-pointer-types]
135 | return &send_buffer;
| ^~~~~~~~~~~~
Multiple libraries were found for "Servo.h"
Used: C:\Users\frede\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\4.5.0\libraries\Servo
Not used: C:\Users\frede\AppData\Local\Arduino15\libraries\Servo
exit status 1

Compilation error: exit status 1

Problem resolved by using Raspberry Pi Pico/RP2040: version 3.0.0
I do not know which better level than version 3.0.0, solves the problem as well
For the time being I am happy with the above solution.
Regards, Fred

The better solution is to fix the library.
The line

return &send_buffer;

is wrong. It should not be returning the address of the pointer, but just the pointer itself

return send_buffer;

You can fix that by modifying your ..\libraries\HUSKYLENS\HuskyLensProtocolCore.c file. There are a couple of other fixes on github for this library from 4-5 years ago so I am not sure it is really maintained anymore.

Dear blh64,
Thanks very much for your fix.
Regards, Fred