fix Logger::add_topic: 0 is a valid file descriptor

This commit is contained in:
Beat Küng 2016-05-02 14:52:16 +02:00 committed by Lorenz Meier
parent d0d2664efa
commit 04f38b9197
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}