mirror of
https://github.com/espressif/openthread.git
synced 2026-06-06 05:24:51 +00:00
[time-sync] add compile-time check for TREL incompatibility (#12880)
This commit adds a compile-time check in `time_sync_service.hpp` to ensure that `OPENTHREAD_CONFIG_RADIO_LINK_TREL_ENABLE` is not enabled alongside `OPENTHREAD_CONFIG_TIME_SYNC_ENABLE`. The time synchronization feature is experimental and currently only supports IEEE 802.15.4 radio links. Attempting to use it over TREL is unsupported and will now result in a build failure.
This commit is contained in:
committed by
GitHub
parent
06ed4dce4e
commit
40976e772d
@@ -38,6 +38,11 @@
|
||||
|
||||
#if OPENTHREAD_CONFIG_TIME_SYNC_ENABLE
|
||||
|
||||
#if OPENTHREAD_CONFIG_RADIO_LINK_TREL_ENABLE
|
||||
#error "TIME_SYNC feature is not supported under RADIO_LINK_TREL. " \
|
||||
"TIME_SYNC is an experimental feature that only works on 15.4 radio."
|
||||
#endif
|
||||
|
||||
#include <openthread/network_time.h>
|
||||
|
||||
#include "common/as_core_type.hpp"
|
||||
|
||||
Reference in New Issue
Block a user