Merge pull request #13755 from AGlass0fMilk/fix-init-os-timer

Fix MBED_ERROR call in init_os_timer
pull/13957/head
Martin Kojtal 2020-11-24 13:38:46 +00:00 committed by GitHub
commit 124afe79bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -52,7 +52,11 @@ OsTimer *init_os_timer()
#elif DEVICE_USTICKER
os_timer = new (os_timer_data) OsTimer(get_us_ticker_data());
#else
MBED_ERROR("OS timer not available");
MBED_ERROR(
MBED_MAKE_ERROR(
MBED_MODULE_PLATFORM,
MBED_ERROR_CODE_CONFIG_UNSUPPORTED),
"OS timer not available");
#endif
}