Commit 7a6eddd
authored
[NXP][platform][common] Avoid using static state variables in OTA firmware processor (project-chip#41944)
Using function local static state variables such as "ulCrtAddr" and
"ulEraseLen" in the OTAFirmwareProcessor::ProcessInternal method causes
issues when OTA transfers are interrupted and then resumed because the
function local variables cannot be accessed (and reset) by other class
methods (such as OTAFirmwareProcessor::Clear or
OTAFirmwareProcessor::AbortAction).
The use of function local state variables was dropped and the SDK
wireless framework OTA support layer is now in charge of managing block
addresses and erases.
Reviewed-by: Dina Benamar <[email protected]>
Signed-off-by: Marian Chereji <[email protected]>1 parent acbbe92 commit 7a6eddd
1 file changed
+4
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | 71 | | |
74 | 72 | | |
75 | 73 | | |
| |||
102 | 100 | | |
103 | 101 | | |
104 | 102 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
| 103 | + | |
| 104 | + | |
119 | 105 | | |
120 | | - | |
| 106 | + | |
| 107 | + | |
121 | 108 | | |
122 | 109 | | |
123 | 110 | | |
| |||
0 commit comments