forked from xoseperez/espurna
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sns: really handle all of available temperature conversions
amends e51e259 fixing incorrect conversion from kelvin, and also add full conversion from possible farenheit source (if that ever happens) experimenting with the idea of unit conversion... while a table-like approach will work and will be slightly shorter, it would not have the specific type checks and constexpr still does not play well with lambdas plus, any conversion function referenced as a pointer will not really be a constexpr (...and still require c++17 to work correctly when iterating)
- Loading branch information
Showing
1 changed file
with
207 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters