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

Fixed fd leak, and indented #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jakobdalsgaard
Copy link

Basically moved this part:

const sensor = await ina219(Number(options.i2c_address), options.i2c_bus);
await sensor.calibrate32V2A();

outside the readina219 function to prevent filedescriptor leak -- also redid the catch statement.

Fixing this leak is essential for running SignalK for many weeks.

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

1 participant