Commit 6e011e3
committed
fix: FF_MAX_LFN collides with the fatfs macro of the same name
fatfs defines FF_MAX_LFN from CONFIG_FATFS_MAX_LFN.
FtpServer.h defined it unconditionally and first, so a translation unit
reaching both headers took a redefinition warning that no -Wno- suppresses.
The FTP limit is FTP_MAX_LFN; the three sizes derived from it keep their
values, and FTP_LEGACY_FF_MAX_LFN brings the old name back for a sketch that
spells it.1 parent db5a13d commit 6e011e3
1 file changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
497 | 497 | | |
498 | 498 | | |
499 | 499 | | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
504 | 512 | | |
505 | 513 | | |
506 | 514 | | |
| |||
0 commit comments