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 {
46
46
public readonly description : string ;
47
47
public readonly groupName : string ;
48
48
public readonly totalLength : number ;
49
- public readonly accessType = AccessType . ReadOnly ;
49
+ public readonly accessType : AccessType ;
50
50
public readonly size : number ;
51
51
public readonly resetValue : number ;
52
52
protected addrRanges : AddrRange [ ] ;
@@ -62,6 +62,7 @@ export class PeripheralNode extends PeripheralBaseNode {
62
62
this . description = options . description ;
63
63
this . groupName = options . groupName || '' ;
64
64
this . resetValue = options . resetValue || 0 ;
65
+ this . accessType = options . accessType || AccessType . ReadWrite ;
65
66
this . size = options . size || 32 ;
66
67
this . children = [ ] ;
67
68
this . addrRanges = [ ] ;
You can’t perform that action at this time.
0 commit comments