diff --git a/examples/platforms/efr32mg12/flash.c b/examples/platforms/efr32mg12/flash.c index 2fa52c336..15d46ea1a 100644 --- a/examples/platforms/efr32mg12/flash.c +++ b/examples/platforms/efr32mg12/flash.c @@ -100,6 +100,7 @@ void otPlatFlashRead(otInstance *aInstance, uint8_t aSwapIndex, uint32_t aOffset #else // Defaults to Silabs nvm3 system +#include "nvm3.h" #include "nvm3_default.h" #include #include @@ -330,7 +331,6 @@ static otError addSetting(uint16_t aKey, const uint8_t *aValue, uint16_t aValueL } } -exit: return err; } diff --git a/examples/platforms/efr32mg13/flash.c b/examples/platforms/efr32mg13/flash.c index 2fa52c336..15d46ea1a 100644 --- a/examples/platforms/efr32mg13/flash.c +++ b/examples/platforms/efr32mg13/flash.c @@ -100,6 +100,7 @@ void otPlatFlashRead(otInstance *aInstance, uint8_t aSwapIndex, uint32_t aOffset #else // Defaults to Silabs nvm3 system +#include "nvm3.h" #include "nvm3_default.h" #include #include @@ -330,7 +331,6 @@ static otError addSetting(uint16_t aKey, const uint8_t *aValue, uint16_t aValueL } } -exit: return err; } diff --git a/examples/platforms/efr32mg21/flash.c b/examples/platforms/efr32mg21/flash.c index 2fa52c336..15d46ea1a 100644 --- a/examples/platforms/efr32mg21/flash.c +++ b/examples/platforms/efr32mg21/flash.c @@ -100,6 +100,7 @@ void otPlatFlashRead(otInstance *aInstance, uint8_t aSwapIndex, uint32_t aOffset #else // Defaults to Silabs nvm3 system +#include "nvm3.h" #include "nvm3_default.h" #include #include @@ -330,7 +331,6 @@ static otError addSetting(uint16_t aKey, const uint8_t *aValue, uint16_t aValueL } } -exit: return err; }