In BleCompositeHID.cpp the #include <driver/adc.h> needs to be removed. As this is giving a warning and the ADC is not used. This is on arduino V3.2.1