Skip to content

Commit 52cb119

Browse files
author
Cruz Monrreal
authored
Merge pull request #7059 from deepikabhavnani/os_verison_fix
OS version not update in mbed_stats
2 parents f92c227 + d764a7c commit 52cb119

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

TESTS/mbed_platform/stats_sys/main.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ void test_sys_info()
3232
mbed_stats_sys_t stats;
3333
mbed_stats_sys_get(&stats);
3434

35-
#if defined(MBED_VERSION)
36-
TEST_ASSERT_NOT_EQUAL(0, stats.os_version);
37-
#endif
38-
3935
#if defined(__CORTEX_M)
4036
TEST_ASSERT_NOT_EQUAL(0, stats.cpu_id);
4137
#endif

platform/mbed_stats.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,6 @@ void mbed_stats_sys_get(mbed_stats_sys_t *stats)
123123
memset(stats, 0, sizeof(mbed_stats_sys_t));
124124

125125
#if defined(MBED_SYS_STATS_ENABLED)
126-
#if defined(MBED_VERSION)
127-
stats->os_version = MBED_VERSION;
128-
#endif
129126
#if defined(__CORTEX_M)
130127
stats->cpu_id = SCB->CPUID;
131128
#endif

0 commit comments

Comments
 (0)