Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADC interface documentation #381

Open
rleh opened this issue Apr 24, 2020 · 0 comments
Open

ADC interface documentation #381

rleh opened this issue Apr 24, 2020 · 0 comments
Assignees
Labels

Comments

@rleh
Copy link
Member

rleh commented Apr 24, 2020

uint16_t readChannel(Channel channel)

According to docs.modm.io

typedef uint8_t 	Channel
// this type may also be an enum or enum class 

the call readChannel(1) should be legal, but: error: cannot convert 'int' to 'modm::platform::Adc1::Channel'.

We should update the documentation (by removing the fake typedef in architecture/).

cc @hshose

@rleh rleh added the bug 🐞 label Apr 24, 2020
@rleh rleh self-assigned this Apr 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant