We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46f2e0d commit a300c65Copy full SHA for a300c65
sim/components/ble/SimpleWeatherService.h
@@ -88,6 +88,10 @@ class SimpleWeatherService {
88
std::optional<CurrentWeather> Current() const;
89
std::optional<Forecast> GetForecast() const;
90
91
+ static int16_t CelsiusToFahrenheit(int16_t celsius) {
92
+ return celsius * 9 / 5 + 3200;
93
+ }
94
+
95
private:
96
// 00050000-78fc-48fe-8e23-433b3a1942d0
97
//static constexpr ble_uuid128_t BaseUuid() {
0 commit comments