Distinguish between set/reset delays when possible.

This commit is contained in:
Brian Taylor 2022-12-09 09:46:00 -08:00
parent afb5dcbffb
commit bda5d3f845
1 changed files with 6 additions and 4 deletions

View File

@ -2688,10 +2688,11 @@ static char *get_delays_ueff(char *rem)
} }
setd = NULL; setd = NULL;
resetd = NULL; resetd = NULL;
/* pcqrise is set_delay, pcqfall is reset_delay */
if (pcqrise && strlen(pcqrise) > 0) { if (pcqrise && strlen(pcqrise) > 0) {
if (pcqfall && strlen(pcqfall) > 0) { if (pcqfall && strlen(pcqfall) > 0) {
larger = larger_delay(pcqrise, pcqfall); setd = pcqrise;
setd = resetd = larger; resetd = pcqfall;
} else { } else {
setd = resetd = pcqrise; setd = resetd = pcqrise;
} }
@ -2791,10 +2792,11 @@ static char *get_delays_ugff(char *rem, char *d_name)
} }
setd = NULL; setd = NULL;
resetd = NULL; resetd = NULL;
/* tppcqlh is set_delay, tppcqhl is reset_delay */
if (tppcqlh && strlen(tppcqlh) > 0) { if (tppcqlh && strlen(tppcqlh) > 0) {
if (tppcqhl && strlen(tppcqhl) > 0) { if (tppcqhl && strlen(tppcqhl) > 0) {
larger = larger_delay(tppcqlh, tppcqhl); setd = tppcqlh;
setd = resetd = larger; resetd = tppcqhl;
} else { } else {
setd = resetd = tppcqlh; setd = resetd = tppcqlh;
} }