mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-23 22:58:10 +08:00
renamed const name since it is a macro in a system header on OS X (/usr/include/sys/syslimits.h)
This commit is contained in:
committed by
Lorenz Meier
parent
f2c1d6d66d
commit
959aefba63
@@ -10,8 +10,8 @@
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
TEST(SF0XTest, SF0X) {
|
||||
const char LINE_MAX = 20;
|
||||
char _linebuf[LINE_MAX];
|
||||
const char _LINE_MAX = 20;
|
||||
char _linebuf[_LINE_MAX];
|
||||
_linebuf[0] = '\0';
|
||||
|
||||
const char *lines[] = {"0.01\r\n",
|
||||
@@ -34,7 +34,7 @@ TEST(SF0XTest, SF0X) {
|
||||
|
||||
enum SF0X_PARSE_STATE state = SF0X_PARSE_STATE0_UNSYNC;
|
||||
float dist_m;
|
||||
char _parserbuf[LINE_MAX];
|
||||
char _parserbuf[_LINE_MAX];
|
||||
unsigned _parsebuf_index = 0;
|
||||
|
||||
for (unsigned l = 0; l < sizeof(lines) / sizeof(lines[0]); l++) {
|
||||
|
||||
Reference in New Issue
Block a user