First of: Excuse me if I'm wrong I haven't tried the code I just happened to see something strang while looking through the code in the repo.
In Lua-RTOS-ESP32/components/lua_rtos/drivers/adc.c it's written (in a couple of places):
if (!((1 << channel) && CPU_ADC_ALL))
I'm quite sure that that should be written as so:
if (!((1 << channel) & CPU_ADC_ALL))
First of: Excuse me if I'm wrong I haven't tried the code I just happened to see something strang while looking through the code in the repo. In Lua-RTOS-ESP32/components/lua_rtos/drivers/adc.c it's written (in a couple of places): if (!((1 << channel) && CPU_ADC_ALL))
I'm quite sure that that should be written as so: if (!((1 << channel) & CPU_ADC_ALL))
That is: & instead of &&