Toggle the fifo output once if synchronization is disabled
This commit is contained in:
@@ -282,8 +282,9 @@ bool Configuration::read(const std::vector<std::string> &config_paths, bool igno
|
||||
p.add("visualizer_sync_interval", &visualizer_sync_interval, "0",
|
||||
[](std::string v) {
|
||||
unsigned sync_interval = verbose_lexical_cast<unsigned>(v);
|
||||
if (sync_interval > 0)
|
||||
lowerBoundCheck<unsigned>(sync_interval, 10);
|
||||
if (sync_interval == 0)
|
||||
sync_interval = std::numeric_limits<unsigned>::max();
|
||||
lowerBoundCheck<unsigned>(sync_interval, 10);
|
||||
return boost::posix_time::seconds(sync_interval);
|
||||
});
|
||||
p.add("visualizer_type", &visualizer_type, "wave");
|
||||
|
||||
Reference in New Issue
Block a user