File tree 2 files changed +2
-17
lines changed
examples/platform/nrfconnect/util
2 files changed +2
-17
lines changed Original file line number Diff line number Diff line change 24
24
#include < app/clusters/ota-requestor/DefaultOTARequestorStorage.h>
25
25
#include < app/server/Server.h>
26
26
#include < platform/CHIPDeviceLayer.h>
27
+ #include < platform/nrfconnect/ExternalFlashManager.h>
27
28
#include < platform/nrfconnect/OTAImageProcessorImpl.h>
28
29
#include < zephyr/dfu/mcuboot.h>
29
30
#endif
@@ -45,7 +46,7 @@ chip::DefaultOTARequestor sOTARequestor;
45
46
OTAImageProcessorImpl & GetOTAImageProcessor ()
46
47
{
47
48
#if CONFIG_PM_DEVICE && CONFIG_NORDIC_QSPI_NOR
48
- static OTAImageProcessorImpl sOTAImageProcessor (& GetFlashHandler ());
49
+ static OTAImageProcessorImpl sOTAImageProcessor (ExternalFlashManager. GetInstance ());
49
50
#else
50
51
static OTAImageProcessorImpl sOTAImageProcessor ;
51
52
#endif
@@ -93,9 +94,3 @@ void OtaConfirmNewImage()
93
94
}
94
95
95
96
#endif
96
-
97
- ExternalFlashManager & GetFlashHandler ()
98
- {
99
- static ExternalFlashManager sFlashHandler ;
100
- return sFlashHandler ;
101
- }
Original file line number Diff line number Diff line change 17
17
18
18
#pragma once
19
19
20
- #include < platform/nrfconnect/ExternalFlashManager.h>
21
-
22
20
#if CONFIG_CHIP_OTA_REQUESTOR
23
21
#include < platform/nrfconnect/OTAImageProcessorImpl.h>
24
22
@@ -57,11 +55,3 @@ void InitBasicOTARequestor();
57
55
void OtaConfirmNewImage ();
58
56
59
57
#endif // CONFIG_CHIP_OTA_REQUESTOR
60
-
61
- /* *
62
- * Get ExternalFlashManager static instance.
63
- *
64
- * Returned object can be used to control the QSPI external flash,
65
- * which can be introduced into sleep mode and woken up on demand.
66
- */
67
- chip::DeviceLayer::ExternalFlashManager & GetFlashHandler ();
You can’t perform that action at this time.
0 commit comments