Skip to content

Conversation

@Kostadin
Copy link

The PMS5003 library returns integers as sensor readings. This causes the current formula for colour scaling of the graph to not work properly because of integer division instead of float division. Converting the PMS5003 results from int to float solves the problem.

Before:
Graphing before fix

After:
Graphing after fix

The PMS5003 library returns integers. This causes the current formula for color scaling of the graph to not work properly because of integer division instead of float division. Converting the PMS5003 results from int to float solves the problem.
@Gadgetoid
Copy link
Member

Oof, good spot! Thank you for taking the time to raise this as a PR.

@Gadgetoid Gadgetoid merged commit 655d013 into pimoroni:master Oct 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.

2 participants