File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -29,15 +29,18 @@ var microbitFsWrapper = function() {
29
29
if ( typeof fs1 [ key ] === 'function' ) {
30
30
fsWrapper [ key ] = function ( ) {
31
31
var return1 = fs1 [ key ] . apply ( fs1 , arguments ) ;
32
- var return2 = fs2 [ key ] . apply ( fs2 , arguments ) ;
32
+ var return2 = fs2 [ key ] . apply ( fs2 , arguments ) ;
33
33
// FIXME: Keep this during general testing, probably remove on final release for speed
34
34
if ( JSON . stringify ( return1 ) !== JSON . stringify ( return2 ) ) {
35
35
console . error ( 'Return from call to ' + key + ' differs:\n\t' + return1 + '\n\t' + return2 ) ;
36
36
}
37
37
return return1 ;
38
- }
38
+ } ;
39
39
}
40
40
} ) ;
41
+ // Remove the MicropythonFsHex functions we don't want to expose
42
+ delete fsWrapper [ 'getIntelHex' ] ;
43
+ delete fsWrapper [ 'getIntelHexBytes' ] ;
41
44
}
42
45
43
46
/**
Original file line number Diff line number Diff line change @@ -733,7 +733,7 @@ function web_editor(config) {
733
733
try {
734
734
FS . write ( filename , fileBytes ) ;
735
735
// Check if the filesystem has run out of space
736
- var _ = FS . getIntelHex ( ) ;
736
+ var _ = FS . getUniversalHex ( ) ;
737
737
} catch ( e ) {
738
738
if ( FS . exists ( filename ) ) {
739
739
FS . remove ( filename ) ;
You can’t perform that action at this time.
0 commit comments