kopera / kopera/erlang-gpio

Raise badarg on invalid flags

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Erlang
Stars
11
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Currently it is possible to call:

```erlang
{ok, LineEvents} = gpio:open_line_events(Chip, 10, [input], [rising_edge], "my-application").
```

This should raise a `badarg`, because `input` is not a valid flag.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at gpio:open_line_events/5, using the example in the issue to trace how the flags are handled. Confirm that passing input as a flag raises badarg, and add or run a regression check for the invalid-flag case.

Written by the indexing model from the issue text.

Assessment

Tech stack
erlang
Domain
embedded-iot
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.