Skip to content

Conversation

@Delanet
Copy link
Contributor

@Delanet Delanet commented May 8, 2017

The function setMT(mt) did not work. The code was copied from the datasheet BH1750, but it is not working: 1 / 1.2 *( 69 / X ), where X is MTreg value.
The variable X caused an error in this.factor=1.2/(69/X).

The function setMT() did not work. The code was copied from the datasheet BH1750, but it is not working.
The variable `X` caused an error in `this.factor=1.2/(69/X)`.
@gfwilliams
Copy link
Member

Great - thanks! At some point in the past Espruino didn't error for undefined variables, so I guess this bug probably crept through then

@gfwilliams gfwilliams merged commit 3112208 into espruino:master May 9, 2017
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