LedDeviceFile now defaults to /dev/null if the output is omitted.

Former-commit-id: eff12ec16d08ffa00287ed68238ab6b397f1c53d
This commit is contained in:
penfold42
2016-03-23 21:28:31 +11:00
parent 7dce3ab798
commit a3204ae6be
2 changed files with 2 additions and 2 deletions

View File

@@ -277,7 +277,7 @@ LedDevice * LedDeviceFactory::construct(const Json::Value & deviceConfig)
}
else if (type == "file")
{
const std::string output = deviceConfig["output"].asString();
const std::string output = deviceConfig.get("output", "/dev/null").asString();
device = new LedDeviceFile(output);
}
else if (type == "fadecandy")