forked from Archive/PX4-Autopilot
fix Logger::add_topic: 0 is a valid file descriptor
This commit is contained in:
parent
d0d2664efa
commit
04f38b9197
|
@ -333,7 +333,7 @@ int Logger::add_topic(const char *name, unsigned interval = 0)
|
|||
}
|
||||
}
|
||||
|
||||
if ((fd > 0) && (interval != 0)) {
|
||||
if (fd >= 0 && interval != 0) {
|
||||
orb_set_interval(fd, interval);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue