Skip to content

Machine adc csv bsp int conversion warning#162

Open
jaenrig-ifx wants to merge 3 commits into
machine_adc_csv_bspfrom
machine_adc_csv_bsp-int-conversion-warning
Open

Machine adc csv bsp int conversion warning#162
jaenrig-ifx wants to merge 3 commits into
machine_adc_csv_bspfrom
machine_adc_csv_bsp-int-conversion-warning

Conversation

@jaenrig-ifx

Copy link
Copy Markdown
Member

I would not suppress the warning during compilation. That -1 is not a valid value in our case, and add ignore to any other warning for this type of conversion.

The extmod/machine_adc_block is only used by esp32, therefore it has some port specific initialization.
That should be fixed somehow in the extmod itself, as each port implements a different mp_hal_pin_obj_t type.

I though of just adding a macro which each port needs to define for itself. Maybe other ways would minimize adding changes to ports... That pin need to be initialized to -1?
But maybe a point for discussion when pushing to the upstream.

Signed-off-by: jaenrig-ifx <enriquezgarcia.external@infineon.com>
Signed-off-by: jaenrig-ifx <enriquezgarcia.external@infineon.com>
Signed-off-by: jaenrig-ifx <enriquezgarcia.external@infineon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant