Add support for Celsius to Fahreneit conversion (#136)

main
JF 2023-12-24 11:50:47 +07:00 committed by GitHub
parent 46f2e0d16f
commit a300c65ecb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

@ -88,6 +88,10 @@ public:
std::optional<CurrentWeather> Current() const;
std::optional<Forecast> GetForecast() const;
static int16_t CelsiusToFahrenheit(int16_t celsius) {
return celsius * 9 / 5 + 3200;
}
private:
// 00050000-78fc-48fe-8e23-433b3a1942d0
//static constexpr ble_uuid128_t BaseUuid() {