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

HotPlug for sensors support added #7368

Merged
merged 1 commit into from Dec 30, 2019
Merged

Conversation

BASM
Copy link
Contributor

@BASM BASM commented Dec 29, 2019

Description:

Hot Plug for sensors. In some cases, a hotplug saves a significant amount of time and nerves.
By default, HotPlug is disabled. Only for sensors firmware.
For enable you must type 'HotPlug ' on the console, there seconds may be from 1 to 254 second. Seconds -- interval to rescan all sensors (that support the hotplug)

Use with caution. With a large number of sensors turned on and a small interval, a lot of processor time will be involved.

It use only one byte from config section.
At the moment, HotPlug only works for DS1624 sensors (i2c bus). In plans add for DS18x20 (1-wire bus).

Theo, I understand your hatred of hotplug, but it's really convenient. It is off by default. And does not take up much memory. Thanks!

Checklist:

  • The pull request is done against the latest dev branch
  • Only relevant files were touched
  • Only one feature/fix was added per PR.
  • The code change is tested and works
  • The code change pass travis tests. Your PR cannot be merged unless tests pass
  • I accept the CLA.

@arendst arendst merged commit 3fabf6d into arendst:development Dec 30, 2019
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.

None yet

2 participants