fix(mavlink): Hardcode PX4_MAX_FILEPATH for log handler to avoid case when (#27502)

limits.h is included before the definition in some locations and not others
(which would trigger a setting of 1024) resulting in conflicting definitions.
This commit is contained in:
Eric Katzfey
2026-05-30 14:16:00 -07:00
committed by GitHub
parent 97352b5068
commit e81184e49d

View File

@@ -41,12 +41,9 @@
#define PX4_MAX_FILEPATH CONFIG_PATH_MAX
#define PX4_MAX_FILEPATH_SCANF 255
#else
#ifndef PATH_MAX
#define PATH_MAX 1024 // maximum on macOS
#endif
#define PX4LOG_REGULAR_FILE DT_REG
#define PX4LOG_DIRECTORY DT_DIR
#define PX4_MAX_FILEPATH PATH_MAX
#define PX4_MAX_FILEPATH 1024
#define PX4_MAX_FILEPATH_SCANF 1023
#endif