Skip to content

Commit d826b26

Browse files
committed
Fix #76
1 parent eaa210f commit d826b26

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

example/mbr.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ var fs = require('fs');
44
var chs = new Parser({
55
formatter: function (val) {
66
val.cylinder |= val.cylinderHigh << 8;
7-
delete val.cylinderHigh;
87
return val;
98
},
109
})
@@ -17,10 +16,18 @@ var partitionTable = new Parser()
1716
.uint8('bootFlag')
1817
.nest('startCHS', {
1918
type: chs,
19+
formatter: function (val) {
20+
delete val.cylinderHigh;
21+
return val;
22+
},
2023
})
2124
.uint8('type')
2225
.nest('endCHS', {
2326
type: chs,
27+
formatter: function (val) {
28+
delete val.cylinderHigh;
29+
return val;
30+
},
2431
})
2532
.uint32le('startLBA')
2633
.uint32le('endLBA');

0 commit comments

Comments
 (0)