Skip to content

Commit 98d6dfe

Browse files
committed
Merge pull request #12 from ARMmbed/fix_compilation_warning
Fix compilation warnings related to statistics
2 parents 458e502 + 9137ba3 commit 98d6dfe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/mbed_platform.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ static bool timeIsInPeriod(minar::platform::tick_t start, minar::platform::tick_
3434
///////////////////////////////////////////////////////////////////////////////
3535

3636
// functions and variables for keeping track of uptime and duty-cycle
37+
#if YOTTA_CFG_MINAR_STATS
3738
static uint64_t total_sleep = 0;
3839
static uint64_t total_active = 0;
3940
static minar::platform::tick_t last_wakeup = 0;
@@ -54,6 +55,7 @@ uint64_t getActive() {
5455

5556
};
5657
};
58+
#endif
5759

5860
///////////////////////////////////////////////////////////////////////////////
5961

0 commit comments

Comments
 (0)