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

Add a Celsius, Fahrenheit enum to the climate crate #54

Open
tcr opened this issue Oct 18, 2016 · 1 comment · May be fixed by #57
Open

Add a Celsius, Fahrenheit enum to the climate crate #54

tcr opened this issue Oct 18, 2016 · 1 comment · May be fixed by #57

Comments

@tcr
Copy link
Member

tcr commented Oct 18, 2016

Some of us don't have backwards temperature systems, and so we should allow readings to be in whichever temperature system you prefer. Something like the following:

fn read_temperature(&mut self, temp: Temperature) { ... }

enum Temperature {
  Celsius,
  Fahrenheit
}
@kc1212 kc1212 linked a pull request Oct 19, 2016 that will close this issue
@marioidival
Copy link

@tcr is done?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants