mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
More logging migration. (#74)
Cleaned up old commented out printf statements. The piblaster stuff probably needs to be moved out of the devicefactory but Ill have to do that later
This commit is contained in:
@@ -226,7 +226,7 @@ LedDevice * LedDeviceFactory::construct(const Json::Value & deviceConfig)
|
||||
const Json::Value gpioMapping = deviceConfig.get("gpiomap", Json::nullValue);
|
||||
|
||||
if (assignment.length() > 0) {
|
||||
std::cout << "ERROR: Sorry, the configuration syntax has changed in this version." << std::endl;
|
||||
Error(log, "Piblaster: The piblaster configuration syntax has changed in this version.");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
if (! gpioMapping.isNull() ) {
|
||||
@@ -235,7 +235,7 @@ LedDevice * LedDeviceFactory::construct(const Json::Value & deviceConfig)
|
||||
|
||||
device = devicePiBlaster;
|
||||
} else {
|
||||
std::cout << "ERROR: no gpiomap defined." << std::endl;
|
||||
Error(log, "Piblaster: no gpiomap defined.");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user