Fix for lastread pointers

This commit is contained in:
Michiel Broek 2005-08-14 19:09:48 +00:00
parent e4aeefa582
commit 2e555964e3

View File

@ -718,6 +718,10 @@ void JAM_Pack(void)
LR.LastReadMsg = 0;
LR.HighReadMsg = 0;
}
if (jamHdrInfo.ActiveMsgs && (LR.LastReadMsg > jamHdrInfo.ActiveMsgs))
LR.LastReadMsg = jamHdrInfo.ActiveMsgs;
if (jamHdrInfo.ActiveMsgs && (LR.HighReadMsg > jamHdrInfo.ActiveMsgs))
LR.HighReadMsg = jamHdrInfo.ActiveMsgs;
write(fdnJlr, &LR, sizeof(lastread));
}
}