mirror of
https://github.com/espressif/openthread.git
synced 2026-08-04 18:07:47 +00:00
[simulation] fix build with RAM settings (#7648)
This commit fixes the build error when `OPENTHREAD_SETTINGS_RAM` is enabled. Also adds a check to prevent this error in the future.
This commit is contained in:
@@ -231,7 +231,7 @@ otError otPlatSettingsDelete(otInstance *aInstance, uint16_t aKey, int aIndex)
|
||||
|
||||
void otPlatSettingsWipe(otInstance *aInstance)
|
||||
{
|
||||
otPlatSettingsInit(aInstance);
|
||||
otPlatSettingsInit(aInstance, NULL, 0);
|
||||
}
|
||||
|
||||
#endif // OPENTHREAD_SETTINGS_RAM
|
||||
|
||||
@@ -89,6 +89,10 @@ build_all_features()
|
||||
# Build Thread 1.2 with full features and OT_ASSERT=OFF
|
||||
reset_source
|
||||
"$(dirname "$0")"/cmake-build simulation "${options[@]}" -DOT_DUA=ON -DOT_ASSERT=OFF
|
||||
|
||||
# Build with RAM settings
|
||||
reset_source
|
||||
"$(dirname "$0")"/cmake-build simulation -DOT_SETTINGS_RAM=ON
|
||||
}
|
||||
|
||||
build_toranj()
|
||||
|
||||
Reference in New Issue
Block a user