File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export class PeripheralNode extends PeripheralBaseNode {
4646 public readonly description : string ;
4747 public readonly groupName : string ;
4848 public readonly totalLength : number ;
49- public readonly accessType = AccessType . ReadOnly ;
49+ public readonly accessType : AccessType ;
5050 public readonly size : number ;
5151 public readonly resetValue : number ;
5252 protected addrRanges : AddrRange [ ] ;
@@ -62,6 +62,7 @@ export class PeripheralNode extends PeripheralBaseNode {
6262 this . description = options . description ;
6363 this . groupName = options . groupName || '' ;
6464 this . resetValue = options . resetValue || 0 ;
65+ this . accessType = options . accessType || AccessType . ReadWrite ;
6566 this . size = options . size || 32 ;
6667 this . children = [ ] ;
6768 this . addrRanges = [ ] ;
You can’t perform that action at this time.
0 commit comments