Skip to content

Commit be3dccc

Browse files
committed
rename PATH_MAX to SERIAL_PATH_MAX in monitor.c to avoid naming conflict with macOS sdk
1 parent 8f1a72e commit be3dccc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/monitor.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
#include <fts.h> // FTS stuff
1010

1111
/// @brief Max path size for the serial device
12-
#define PATH_MAX 4096
12+
#define SERIAL_PATH_MAX 4096
1313

1414
/// @brief Size of the serial buffers
1515
const size_t read_size = 8ul * 1024ul;
1616

1717
/// @brief Max size of the serial path, - 1 for null terminator
18-
const size_t SERIAL_PATH_SIZE = PATH_MAX - 1;
18+
const size_t SERIAL_PATH_SIZE = SERIAL_PATH_MAX - 1;
1919

2020
/// @brief In serial buffer
2121
char* in_buffer = NULL;

0 commit comments

Comments
 (0)