Skip to content

Commit b8c7f04

Browse files
committed
Fix warnings
1 parent 7d95dc8 commit b8c7f04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sources/leddevice/LedDevice.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ void LedDevice::identifyLed(const QJsonObject& params)
545545
{
546546
_blinkIndex = params["blinkIndex"].toInt(-1);
547547

548-
if (_blinkIndex < 0 || _blinkIndex >= _lastLedValues.size())
548+
if (_blinkIndex < 0 || _blinkIndex >= (int)_lastLedValues.size())
549549
{
550550
_blinkIndex = -1;
551551
}
@@ -563,7 +563,7 @@ void LedDevice::identifyLed(const QJsonObject& params)
563563
ColorRgb color = (i % 3 == 0) ? ColorRgb::RED : (i % 3 == 1) ? ColorRgb::GREEN : ColorRgb::BLUE;
564564

565565
QTimer::singleShot(800 * i, this, [this, color, blinkOrg]() {
566-
if (_blinkIndex == blinkOrg && _blinkIndex >= 0 && _blinkIndex < _lastLedValues.size())
566+
if (_blinkIndex == blinkOrg && _blinkIndex >= 0 && _blinkIndex < (int)_lastLedValues.size())
567567
{
568568
_lastLedValues[_blinkIndex] = color;
569569
rewriteLEDs();

0 commit comments

Comments
 (0)