Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit d44baad

Browse files
erjiaqingbukepo
andauthored
Use WEAVE_DEVICE_LAYER_TARGET_ESP32 macro
Co-authored-by: Yakun Xu <[email protected]>
1 parent cfeeeb3 commit d44baad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/adaptations/device-layer/include/Weave/DeviceLayer/OpenThread/GenericThreadStackManagerImpl_OpenThread.ipp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,7 @@ WEAVE_ERROR GenericThreadStackManagerImpl_OpenThread<ImplClass>::DoInit(otInstan
10201020
// create or acquire a singleton instance of OpenThread.
10211021
if (otInst == NULL)
10221022
{
1023-
#ifdef WEAVE_PLATFORM_ESP32
1023+
#if defined(WEAVE_DEVICE_LAYER_TARGET_ESP32) && WEAVE_DEVICE_LAYER_TARGET_ESP32
10241024
WeaveLogError(DeviceLayer, "otInstance is not supplied, create a new instance");
10251025
size_t instanceSize = 0;
10261026

0 commit comments

Comments
 (0)