mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Add CodeQL for GitHub code scanning (#1548)
* Create codeql.yml * Addressing codeql findings
This commit is contained in:
@@ -42,7 +42,6 @@ bool LedDeviceDMX::init(const QJsonObject &deviceConfig)
|
||||
}
|
||||
else
|
||||
{
|
||||
//Error(_log, "unknown dmx device type %s", QSTRING_CSTR(dmxString));
|
||||
QString errortext = QString ("unknown dmx device type: %1").arg(dmxTypeString);
|
||||
this->setInError(errortext);
|
||||
return false;
|
||||
|
@@ -24,7 +24,6 @@ bool LedDeviceKarate::init(const QJsonObject& deviceConfig)
|
||||
{
|
||||
if (_ledCount != 8 && _ledCount != 16)
|
||||
{
|
||||
//Error( _log, "%d channels configured. This should always be 16!", _ledCount);
|
||||
QString errortext = QString("%1 channels configured. This should always be 8 or 16!").arg(_ledCount);
|
||||
this->setInError(errortext);
|
||||
isInitOK = false;
|
||||
|
@@ -40,7 +40,6 @@ bool LedDeviceSedu::init(const QJsonObject &deviceConfig)
|
||||
|
||||
if (_ledBuffer.empty())
|
||||
{
|
||||
//Warning(_log, "More rgb-channels required then available");
|
||||
QString errortext = "More rgb-channels required then available";
|
||||
this->setInError(errortext);
|
||||
}
|
||||
|
@@ -273,13 +273,6 @@ void ProviderRs232::readFeedback()
|
||||
{
|
||||
//Output as received
|
||||
std::cout << readData.toStdString();
|
||||
|
||||
//Output as Hex
|
||||
//#if (QT_VERSION >= QT_VERSION_CHECK(5, 9, 0))
|
||||
// std::cout << readData.toHex(':').toStdString();
|
||||
//#else
|
||||
// std::cout << readData.toHex().toStdString();
|
||||
//#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user