mirror of
https://github.com/espressif/openthread.git
synced 2026-07-18 18:14:07 +00:00
[mle] remove MleRouter class definition under MTD build (#9610)
This commit is contained in:
committed by
GitHub
parent
5c34ca2cc3
commit
7d41c9e27a
@@ -395,7 +395,18 @@ otError otThreadSetEnabled(otInstance *aInstance, bool aEnabled)
|
||||
|
||||
uint16_t otThreadGetVersion(void) { return kThreadVersion; }
|
||||
|
||||
bool otThreadIsSingleton(otInstance *aInstance) { return AsCoreType(aInstance).Get<Mle::MleRouter>().IsSingleton(); }
|
||||
bool otThreadIsSingleton(otInstance *aInstance)
|
||||
{
|
||||
bool isSingleton = false;
|
||||
|
||||
#if OPENTHREAD_FTD
|
||||
isSingleton = AsCoreType(aInstance).Get<Mle::MleRouter>().IsSingleton();
|
||||
#else
|
||||
OT_UNUSED_VARIABLE(aInstance);
|
||||
#endif
|
||||
|
||||
return isSingleton;
|
||||
}
|
||||
|
||||
otError otThreadDiscover(otInstance *aInstance,
|
||||
uint32_t aScanChannels,
|
||||
|
||||
Reference in New Issue
Block a user