Skip to content

Conversation

@slaff
Copy link
Contributor

@slaff slaff commented Jun 1, 2017

See esp8266/Arduino#2397 for details.

@slaff slaff added this to the 3.3.0 milestone Jun 1, 2017
@slaff slaff merged commit fd7a20d into SmingHub:develop Jun 1, 2017
if(divisor == 0){
return -1; //AVR returns -1, SAM returns 0
}
return (x - in_min) * (out_max - out_min) / divisor;
Copy link
Contributor

Choose a reason for hiding this comment

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

should be

divisor = in_max - in_min;
return .../divisor + out_min;

@slaff slaff removed the 3 - Review label Sep 29, 2018
@slaff slaff deleted the fixes/from-arduino branch July 22, 2019 12:51
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.

3 participants