@@ -149,6 +149,12 @@ export class byteValueMaps {
149149 }
150150 return { val : byte , name : 'unknown' + byte , desc : 'Unknown status ' + byte } ;
151151 } ;
152+ this . pumpErrors . transform = function ( byte ) {
153+ if ( byte === 0 ) return extend ( true , { } , this . get ( 0 ) , { val : byte } ) ;
154+ let v = this . get ( byte ) ;
155+ if ( typeof v !== 'undefined' ) return extend ( true , { } , v , { val : byte } ) ;
156+ return { val : byte , name : 'error' + byte , desc : 'Unspecified Pump Error ' + byte } ;
157+ } ;
152158 this . scheduleTypes . transform = function ( byte ) {
153159 return ( byte & 128 ) > 0 ? extend ( true , { val : 128 } , this . get ( 128 ) ) : extend ( true , { val : 0 } , this . get ( 0 ) ) ;
154160 } ;
@@ -505,6 +511,10 @@ export class byteValueMaps {
505511 [ 15 , { name : 'error15' , desc : 'Unspecified Error 15' } ] ,
506512 [ 16 , { name : 'commfailure' , desc : 'Communication failure' } ]
507513 ] ) ;
514+ public pumpErrors : byteValueMap = new byteValueMap ( [
515+ [ 0 , { name : 'ok' , desc : 'Ok' } ] ,
516+ [ 2 , { name : 'filter' , desc : 'Filter Error' } ]
517+ ] ) ;
508518 public pumpUnits : byteValueMap = new byteValueMap ( [
509519 [ 0 , { name : 'rpm' , desc : 'RPM' } ] ,
510520 [ 1 , { name : 'gpm' , desc : 'GPM' } ]
0 commit comments