Skip to content

Conversation

@vrahane
Copy link
Contributor

@vrahane vrahane commented Aug 31, 2018

  • Do not use console_read() for expecting characters from the console
  • Added a new command sensor read_stop to stop an infinite read
  • Instead of using a while loop, changed sensor shell to be event based
  • Modify help to show new command
  • Before this change, on polling sensors, an event was removed from the default queue. By using a separate queue for doing a read and not using a semaphore and a while loop this issue gets fixed.

- do not use console_read() for expecting characters from the console
- added a new command `sensor read_stop` to stop an infinite read
- instead of using a while loop, changed sensor shell to be event based
@vrahane vrahane requested a review from ccollins476ad August 31, 2018 22:51
Copy link
Contributor

@ccollins476ad ccollins476ad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. You might want to prevent the user from starting a second read while one is already in progress.

@vrahane vrahane force-pushed the sensor_shell_fix_event branch from b7b35e9 to 3f09818 Compare September 1, 2018 01:21
@vrahane
Copy link
Contributor Author

vrahane commented Sep 1, 2018

Thanks @ccollins476ad, done.

@vrahane vrahane merged commit 3c36268 into apache:master Sep 1, 2018
@vrahane vrahane deleted the sensor_shell_fix_event branch September 1, 2018 01:24
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.

2 participants