Removing run time error from AURA USB detection

+ Adding LOG message
+ Deleting object
This commit is contained in:
Chris 2021-12-20 12:15:20 +11:00
parent 1dd9148399
commit bf22e175c1
2 changed files with 3 additions and 3 deletions

View file

@ -100,9 +100,8 @@ void AuraUSBController::GetConfigTable()
}
else
{
hid_close(dev);
throw std::runtime_error("Could not read config table");
LOG_INFO("[%s] Could not read config table, can not add device", device_name);
delete this;
}
}

View file

@ -8,6 +8,7 @@
\*-----------------------------------------*/
#include "RGBController.h"
#include "LogManager.h"
#include <string>
#include <vector>