Added dbBptNotMonotonic, disables checking slope of breaktables.

This commit is contained in:
Andrew Johnson
2007-08-13 15:27:31 +00:00
parent 834eb51b81
commit 7c0897f058
2 changed files with 6 additions and 1 deletions

View File

@@ -45,6 +45,9 @@ epicsShareDef char *makeDbdDepends=0;
epicsShareDef int dbRecordsOnceOnly=0;
epicsExportAddress(int,dbRecordsOnceOnly);
epicsShareDef int dbBptNotMonotonic=0;
epicsExportAddress(int,dbBptNotMonotonic);
/*private routines */
static void yyerrorAbort(char *str);
static void allocTemp(void *pvoid);
@@ -874,7 +877,7 @@ static void dbBreakBody(void)
(paBrkInt[i+1].raw - paBrkInt[i].raw);
if (i == 0) {
down = (slope < 0);
} else if (down != (slope < 0)) {
} else if (!dbBptNotMonotonic && down != (slope < 0)) {
yyerrorAbort("breaktable: curve slope changes sign");
return;
}

View File

@@ -41,5 +41,7 @@ include "devSoft.dbd"
registrar(asSub)
variable(asCaDebug,int)
# dbStaticLib settings
variable(dbRecordsOnceOnly,int)
variable(dbBptNotMonotonic,int)