From b8c7f047b55e692b293f258780a113f14c28034e Mon Sep 17 00:00:00 2001 From: Awawa Date: Sun, 12 Feb 2023 18:20:03 +0100 Subject: [PATCH] Fix warnings --- sources/leddevice/LedDevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/leddevice/LedDevice.cpp b/sources/leddevice/LedDevice.cpp index cc3c1191c..5b0e01778 100644 --- a/sources/leddevice/LedDevice.cpp +++ b/sources/leddevice/LedDevice.cpp @@ -545,7 +545,7 @@ void LedDevice::identifyLed(const QJsonObject& params) { _blinkIndex = params["blinkIndex"].toInt(-1); - if (_blinkIndex < 0 || _blinkIndex >= _lastLedValues.size()) + if (_blinkIndex < 0 || _blinkIndex >= (int)_lastLedValues.size()) { _blinkIndex = -1; } @@ -563,7 +563,7 @@ void LedDevice::identifyLed(const QJsonObject& params) ColorRgb color = (i % 3 == 0) ? ColorRgb::RED : (i % 3 == 1) ? ColorRgb::GREEN : ColorRgb::BLUE; QTimer::singleShot(800 * i, this, [this, color, blinkOrg]() { - if (_blinkIndex == blinkOrg && _blinkIndex >= 0 && _blinkIndex < _lastLedValues.size()) + if (_blinkIndex == blinkOrg && _blinkIndex >= 0 && _blinkIndex < (int)_lastLedValues.size()) { _lastLedValues[_blinkIndex] = color; rewriteLEDs();