Skip to content

Commit 9b0a5e7

Browse files
committed
telink: Optimizing the code
- Optimizing the code Signed-off-by: Lingzhi Chen <lingzhi.chen@telink-semi.com>
1 parent 715d9cc commit 9b0a5e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/platform/OpenThread/GenericThreadStackManagerImpl_OpenThread.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ extern "C" void otSysProcessDrivers(otInstance * aInstance);
6666
extern "C" void otAppCliInit(otInstance * aInstance);
6767
#endif
6868

69-
#if defined CONFIG_IEEE802154_TLX_OPTIMIZATION && CONFIG_IEEE802154_TLX_OPTIMIZATION
69+
#if defined CONFIG_IEEE802154_TLX_OPTIMIZATION
7070
bool isThreadCommissioned = false;
7171
#endif /* CONFIG_IEEE802154_TLX_OPTIMIZATION */
7272

@@ -383,7 +383,7 @@ bool GenericThreadStackManagerImpl_OpenThread<ImplClass>::_IsThreadAttached()
383383
curRole = otThreadGetDeviceRole(mOTInst);
384384
Impl()->UnlockThreadStack();
385385

386-
#if defined CONFIG_IEEE802154_TLX_OPTIMIZATION && CONFIG_IEEE802154_TLX_OPTIMIZATION
386+
#if defined CONFIG_IEEE802154_TLX_OPTIMIZATION
387387
if ((curRole != OT_DEVICE_ROLE_DISABLED && curRole != OT_DEVICE_ROLE_DETACHED))
388388
{
389389
if (isThreadCommissioned == false)

0 commit comments

Comments
 (0)