mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-07-27 00:48:23 +08:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user