mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-17 14:47:36 +08:00
Merge pull request #2451 from tumbili/vdev_fd
VDev: get rid of those nasty "node_open as advertiser failed"
This commit is contained in:
@@ -64,7 +64,7 @@ private:
|
||||
px4_dev_t() {}
|
||||
};
|
||||
|
||||
#define PX4_MAX_DEV 100
|
||||
#define PX4_MAX_DEV 200
|
||||
static px4_dev_t *devmap[PX4_MAX_DEV];
|
||||
|
||||
/*
|
||||
|
||||
@@ -75,7 +75,7 @@ static void *timer_handler(void *data)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define PX4_MAX_FD 100
|
||||
#define PX4_MAX_FD 200
|
||||
static device::file_t *filemap[PX4_MAX_FD] = {};
|
||||
|
||||
int px4_errno;
|
||||
@@ -117,6 +117,7 @@ int px4_open(const char *path, int flags, ...)
|
||||
ret = dev->open(filemap[i]);
|
||||
}
|
||||
else {
|
||||
PX4_WARN("exceeded maximum number of file descriptors!");
|
||||
ret = -ENOENT;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user