Check the size/count of the fields before use (before the if statement on line 559).
It is always best practice to add an eCount enum item at the end of any enum and verify the size of the array or list that uses the enum as an index; otherwise, you are very likely to encounter an index out of range error and cause the software to crash.
Please review the other enums you may have and apply the same.
Thanks for the feedback, The comment refers to the x (non-capital), the new one that has been added is a new option with X (capital), therefore the comment is still valid.
I did not see any specification regarding to separate or not to separate. Original functionality had separate triggers. Respective PRS's state OR between the two triggers. I think it would be clear to for us in terms of debugging to see which alarm is triggered since on the low side, temp - 4 would be lower than 33, (31).
Wording may be unclear. Im up for suggestions to help clarify the alarm differences.