Skip to content

Commit d65f85c

Browse files
authored
[Ameba] cleanup platform config (#33629)
* Cleanup and allow redefinition of macro
1 parent 4239c88 commit d65f85c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/platform/Ameba/CHIPDevicePlatformConfig.h

+6-1
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,13 @@
2525
#pragma once
2626

2727
// ==================== Platform Adaptations ====================
28-
#define CHIP_DEVICE_CONFIG_ENABLE_WIFI_STATION 0
28+
#ifndef CHIP_DEVICE_CONFIG_ENABLE_WIFI_STATION
29+
#define CHIP_DEVICE_CONFIG_ENABLE_WIFI_STATION 1
30+
#endif
31+
32+
#ifndef CHIP_DEVICE_CONFIG_ENABLE_WIFI_AP
2933
#define CHIP_DEVICE_CONFIG_ENABLE_WIFI_AP 0
34+
#endif
3035

3136
#if CHIP_ENABLE_OPENTHREAD
3237
#define CHIP_DEVICE_CONFIG_ENABLE_THREAD 1

0 commit comments

Comments
 (0)