File tree 3 files changed +8
-15
lines changed
3 files changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -9,23 +9,23 @@ using namespace Pinetime;
9
9
uint32_t BootloaderVersion::version = 0 ;
10
10
char BootloaderVersion::versionString[BootloaderVersion::VERSION_STR_LEN] = " 0.0.0" ;
11
11
12
- const uint32_t BootloaderVersion::Major () {
12
+ uint32_t BootloaderVersion::Major () {
13
13
return (BootloaderVersion::version >> 16u ) & 0xff ;
14
14
}
15
15
16
- const uint32_t BootloaderVersion::Minor () {
16
+ uint32_t BootloaderVersion::Minor () {
17
17
return (BootloaderVersion::version >> 8u ) & 0xff ;
18
18
}
19
19
20
- const uint32_t BootloaderVersion::Patch () {
20
+ uint32_t BootloaderVersion::Patch () {
21
21
return BootloaderVersion::version & 0xff ;
22
22
}
23
23
24
24
const char * BootloaderVersion::VersionString () {
25
25
return BootloaderVersion::versionString;
26
26
}
27
27
28
- const bool BootloaderVersion::IsValid () {
28
+ bool BootloaderVersion::IsValid () {
29
29
return BootloaderVersion::version >= 0x00010000 ;
30
30
}
31
31
Original file line number Diff line number Diff line change 6
6
namespace Pinetime {
7
7
class BootloaderVersion {
8
8
public:
9
- static const uint32_t Major ();
10
- static const uint32_t Minor ();
11
- static const uint32_t Patch ();
9
+ static uint32_t Major ();
10
+ static uint32_t Minor ();
11
+ static uint32_t Patch ();
12
12
static const char * VersionString ();
13
- static const bool IsValid ();
13
+ static bool IsValid ();
14
14
static void SetVersion (uint32_t v);
15
15
16
16
private:
Original file line number Diff line number Diff line change @@ -42,13 +42,6 @@ namespace {
42
42
auto * screen = static_cast <WatchFacePineTimeStyle*>(obj->user_data );
43
43
screen->UpdateSelected (obj, event);
44
44
}
45
-
46
- bool IsBleIconVisible (bool isRadioEnabled, bool isConnected) {
47
- if (!isRadioEnabled) {
48
- return true ;
49
- }
50
- return isConnected;
51
- }
52
45
}
53
46
54
47
WatchFacePineTimeStyle::WatchFacePineTimeStyle (DisplayApp* app,
You can’t perform that action at this time.
0 commit comments