[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:
jinran-google
2022-05-01 19:20:47 -07:00
committed by GitHub
parent 972ed8d793
commit 2d977b0edd
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -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
+4
View File
@@ -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()