Skip to content

Conversation

@shaarang
Copy link

Add a gpiomon initial-state command line option to display initial line states, this is diplayed before waiting for events.

Closes: #159


Changes in v2:

  • allocation of "values" moved to if block.
  • existing variable pollfds was freed.
  • option -S changed to -I.
  • Added to the unit test.

Add a gpiomon initial-state command line option to display
initial line states, this is diplayed before waiting for events.

Closes: brgl#159
Signed-off-by: Shaarang Tyagi <shaarang.tyagi@gmail.com>
---
Changes in v2:
- allocation of "values" moved to if block.
- existing variable pollfds was freed.
- option -S changed to -I.
- Added to the unit test.
@shaarang
Copy link
Author

shaarang commented Jan 18, 2026

Hi,

-i option is taken by idle-timeout, so i used -I
And the test case waits until timeout (10s in dut), or you think i should use --idle-timeout 1 to make gpiomon exit immediately during test script execution?

I found pollfds was not being freed.
Once review is done here, I will send patch v2 on mailing list.

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.

Feature request: gpiomon --initial-state

1 participant