Skip to content

ADC channel sanity check not working? #3

@MrZANE42

Description

@MrZANE42

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 &&

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions