Clear NAMSG together with NSTAT and NSEV

Previously, there was no way to clear AMSG when setting a no-alarm
status: it kept the last error message, and it is strange to have a
record that has no alarm while showing an error. With this change, the
NAMSG field is treated the same as NSTA and NSEV: they are cleared when
their content is moved to STAT, SEVR, and AMSG.
This commit is contained in:
Jure Varlec
2024-11-14 16:11:16 +01:00
committed by mdavidsaver
parent b7cc33c3c9
commit 8483ff9560

View File

@ -190,6 +190,7 @@ unsigned short recGblResetAlarms(void *precord)
if(strcmp(pdbc->namsg, pdbc->amsg)!=0) {
strcpy(pdbc->amsg, pdbc->namsg);
pdbc->namsg[0] = '\0';
stat_mask = DBE_ALARM;
}