Skip to content

Commit 124afe7

Browse files
authored
Merge pull request #13755 from AGlass0fMilk/fix-init-os-timer
Fix MBED_ERROR call in init_os_timer
2 parents 57bbb47 + 7571982 commit 124afe7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

platform/source/mbed_os_timer.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ OsTimer *init_os_timer()
5252
#elif DEVICE_USTICKER
5353
os_timer = new (os_timer_data) OsTimer(get_us_ticker_data());
5454
#else
55-
MBED_ERROR("OS timer not available");
55+
MBED_ERROR(
56+
MBED_MAKE_ERROR(
57+
MBED_MODULE_PLATFORM,
58+
MBED_ERROR_CODE_CONFIG_UNSUPPORTED),
59+
"OS timer not available");
5660
#endif
5761
}
5862

0 commit comments

Comments
 (0)