Simple Weather Service - code cleaning and improvements
Add missing icons (heavy clouds, thunderstorm, snow). Remove unneeded comparison operator (!=), improve conversion of Timestamp and MessageType, order includes. Fix typo in documentation. Remove not related change in StopWatch.
This commit is contained in:
committed by
JF
parent
fe4b07c610
commit
3a8c7dc038
@@ -5,8 +5,6 @@
|
||||
|
||||
using namespace Pinetime::Applications::Screens;
|
||||
|
||||
constexpr int Pinetime::Applications::Screens::StopWatch::maxLapCount;
|
||||
|
||||
namespace {
|
||||
TimeSeparated_t convertTicksToTimeSegments(const TickType_t timeElapsed) {
|
||||
// Centiseconds
|
||||
|
||||
@@ -45,6 +45,9 @@ namespace Pinetime {
|
||||
static constexpr const char* cloudShowersHeavy = "\xEF\x9D\x80";
|
||||
static constexpr const char* smog = "\xEF\x9D\x9F";
|
||||
static constexpr const char* cloud = "\xEF\x83\x82";
|
||||
static constexpr const char* cloud_meatball = "\xEF\x9C\xBB";
|
||||
static constexpr const char* bolt = "\xEF\x83\xA7";
|
||||
static constexpr const char* snowflake = "\xEF\x8B\x9C";
|
||||
static constexpr const char* ban = "\xEF\x81\x9E";
|
||||
|
||||
// lv_font_sys_48.c
|
||||
|
||||
@@ -55,14 +55,14 @@ namespace {
|
||||
return Symbols::cloud;
|
||||
break;
|
||||
case Pinetime::Controllers::SimpleWeatherService::Icons::BrokenClouds:
|
||||
return Symbols::cloud;
|
||||
break; // TODO missing symbol
|
||||
return Symbols::cloud_meatball;
|
||||
break;
|
||||
case Pinetime::Controllers::SimpleWeatherService::Icons::Thunderstorm:
|
||||
return Symbols::cloud;
|
||||
break; // TODO missing symbol
|
||||
return Symbols::bolt;
|
||||
break;
|
||||
case Pinetime::Controllers::SimpleWeatherService::Icons::Snow:
|
||||
return Symbols::cloud;
|
||||
break; // TODO missing symbol
|
||||
return Symbols::snowflake;
|
||||
break;
|
||||
case Pinetime::Controllers::SimpleWeatherService::Icons::CloudShowerHeavy:
|
||||
return Symbols::cloudShowersHeavy;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user