Fix doPublishNotification bug

This commit is contained in:
TuxSH 2019-03-26 20:53:48 +01:00
parent 4e5f6e1eff
commit e2ed200509

View File

@ -14,7 +14,7 @@ static bool doPublishNotification(ProcessData *processData, u32 notificationId,
{ {
for(u16 i = 0; i < processData->nbPendingNotifications; i++) for(u16 i = 0; i < processData->nbPendingNotifications; i++)
{ {
if(processData->pendingNotifications[(processData->pendingNotificationIndex + i) % 16] == notificationId) if(processData->pendingNotifications[(processData->receivedNotificationIndex + i) % 16] == notificationId)
return true; return true;
} }
} }