Commit 75e8379
committed
stm32wl: exclude backup preferences via MESHTASTIC_EXCLUDE_BACKUP
backup.proto requires 2 LittleFS blocks (4 KB) and is only written on an
explicit admin command. On a flash-constrained node with 12 usable blocks,
this is headroom better preserved for normal operation. Guard the three
AdminModule case handlers and NodeDB declarations/implementations behind
#if !MESHTASTIC_EXCLUDE_BACKUP, matching the pattern used by existing
MESHTASTIC_EXCLUDE_* flags throughout the codebase.
Signed-off-by: Andrew Yong <me@ndoo.sg>1 parent 6459b72 commit 75e8379
4 files changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2190 | 2190 | | |
2191 | 2191 | | |
2192 | 2192 | | |
| 2193 | + | |
2193 | 2194 | | |
2194 | 2195 | | |
2195 | 2196 | | |
| |||
2277 | 2278 | | |
2278 | 2279 | | |
2279 | 2280 | | |
| 2281 | + | |
2280 | 2282 | | |
2281 | 2283 | | |
2282 | 2284 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
105 | 106 | | |
| 107 | + | |
106 | 108 | | |
107 | 109 | | |
108 | 110 | | |
| |||
316 | 318 | | |
317 | 319 | | |
318 | 320 | | |
| 321 | + | |
319 | 322 | | |
320 | 323 | | |
321 | 324 | | |
| 325 | + | |
322 | 326 | | |
323 | 327 | | |
324 | 328 | | |
| |||
331 | 335 | | |
332 | 336 | | |
333 | 337 | | |
334 | | - | |
| 338 | + | |
| 339 | + | |
335 | 340 | | |
336 | | - | |
| 341 | + | |
| 342 | + | |
337 | 343 | | |
338 | 344 | | |
339 | 345 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
| 502 | + | |
502 | 503 | | |
503 | 504 | | |
504 | 505 | | |
| |||
535 | 536 | | |
536 | 537 | | |
537 | 538 | | |
| 539 | + | |
538 | 540 | | |
539 | 541 | | |
540 | 542 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
0 commit comments