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

Correct issue #16 #17

Merged
merged 3 commits into from
Nov 27, 2020
Merged

Correct issue #16 #17

merged 3 commits into from
Nov 27, 2020

Conversation

fmatray
Copy link
Contributor

@fmatray fmatray commented Nov 25, 2020

Correct issue #16

… PMS5003ST. Also adds offsets to temperature and humidity to correct sensor's deviation.
src/PMserial.h Outdated
Comment on lines 134 to 137
void set_rhum_offset(float offset) { rhum_offset = offset; };
void set_temp_offset(float offset) { temp_offset = offset; };
float get_rhum_offset() { return rhum_offset; };
float get_temp_offset() { return temp_offset; };
Copy link
Owner

Choose a reason for hiding this comment

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

I think that this methods could be inline-ed
Also, I see the need for set_rhum_offset/set_temp_offset but I'm not so sure about get_rhum_offset/get_temp_offset

@avaldebe
Copy link
Owner

avaldebe commented Nov 25, 2020

Hi @fmatray

Thanks for your PR. I really appreciate the help with testing and patching.

I have 2 requests before merging your PR:

  • please inline the set/get offset methods, I mean add an inline to the method definition; and
  • add a PMS5003T example to the README. A small entry on the advanced usage section showing the set_rhum_offset/set_temp_offset methods would be more than enough

Thanks again,
Á.

@avaldebe avaldebe merged commit ae66d05 into avaldebe:master Nov 27, 2020
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