Skip to content

Commit a1cbee4

Browse files
committed
[nrf noup] Fix OTAUtil
Fix build error in OTAUtil.cpp Signed-off-by: Adrian Gielniewski <adrian.gielniewski@nordicsemi.no>
1 parent 1fa2a5e commit a1cbee4

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

examples/platform/nrfconnect/util/OTAUtil.cpp

+1-7
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ chip::DefaultOTARequestor sOTARequestor;
4545
OTAImageProcessorImpl & GetOTAImageProcessor()
4646
{
4747
#if CONFIG_PM_DEVICE && CONFIG_NORDIC_QSPI_NOR
48-
static OTAImageProcessorImpl sOTAImageProcessor(&GetFlashHandler());
48+
static OTAImageProcessorImpl sOTAImageProcessor(ExternalFlashManager.GetInstance());
4949
#else
5050
static OTAImageProcessorImpl sOTAImageProcessor;
5151
#endif
@@ -93,9 +93,3 @@ void OtaConfirmNewImage()
9393
}
9494

9595
#endif
96-
97-
ExternalFlashManager & GetFlashHandler()
98-
{
99-
static ExternalFlashManager sFlashHandler;
100-
return sFlashHandler;
101-
}

0 commit comments

Comments
 (0)