Make coverty happy.

This commit is contained in:
Christian Speckner 2018-03-30 22:04:42 +02:00
parent 382a39a6c7
commit b5afa69764
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ void DelayQueue<length, capacity>::push(uInt8 address, uInt8 value, uInt8 delay)
uInt8 currentIndex = myIndices[address];
if (currentIndex < 0xFF)
if (currentIndex < length)
myMembers[currentIndex].remove(address);
uInt8 index = smartmod<length>(myIndex + delay);