Skip to content

Commit 3aa6dea

Browse files
committed
refactor: clean up comments
1 parent 36114c9 commit 3aa6dea

2 files changed

Lines changed: 5 additions & 8 deletions

File tree

evrApp/Db/evrbase.db

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,9 @@ record(mbbi, "$(P)PLL-Bandwidth-RB") {
526526

527527
record(bo, "$(P)FifoReset-Cmd") {
528528
field(DESC, "Reset Event FIFO")
529+
field(ASG, "$(ASGPROTECTED=protected)")
529530
field(DTYP, "Obj Prop bool")
530531
field(OUT, "@OBJ=$(OBJ), PROP=FifoReset")
532+
field(ZNAM, "Reset")
533+
field(ONAM, "Reset")
531534
}

evrMrmApp/src/drvem.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ EVRMRM::fifoResetGet() const
10121012
void
10131013
EVRMRM::fifoResetSet(bool v)
10141014
{
1015-
printf("Command: Reset Event FIFO.\n");
1015+
printf("EVR(Command): Reset Event FIFO.\n");
10161016
BITSET(NAT,32, base, Control, Control_fiforst);
10171017
}
10181018

@@ -1440,15 +1440,9 @@ EVRMRM::drain_fifo()
14401440
if (status&(IRQ_FIFOFull|IRQ_RXErr)) {
14411441
// clear fifo if link lost or buffer overflow
14421442
BITSET(NAT,32, base, Control, Control_fiforst);
1443-
printf("Reset Event FIFO.\n");
1443+
printf("EVR(IRQ_FIFOFull|IRQ_RXErr): Reset Event FIFO (status=0x%08)\n", status);
14441444
}
14451445

1446-
// Never enters
1447-
// if (status&(IRQ_LinkChg)) {
1448-
// // clear fifo if Link state change
1449-
// BITSET(NAT,32, base, Control, Control_fiforst);
1450-
// }
1451-
14521446
int iflags=epicsInterruptLock();
14531447

14541448
//*

0 commit comments

Comments
 (0)