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() {
2929 if ( typeof fs1 [ key ] === 'function' ) {
3030 fsWrapper [ key ] = function ( ) {
3131 var return1 = fs1 [ key ] . apply ( fs1 , arguments ) ;
32- var return2 = fs2 [ key ] . apply ( fs2 , arguments ) ;
32+ var return2 = fs2 [ key ] . apply ( fs2 , arguments ) ;
3333 // FIXME: Keep this during general testing, probably remove on final release for speed
3434 if ( JSON . stringify ( return1 ) !== JSON . stringify ( return2 ) ) {
3535 console . error ( 'Return from call to ' + key + ' differs:\n\t' + return1 + '\n\t' + return2 ) ;
3636 }
3737 return return1 ;
38- }
38+ } ;
3939 }
4040 } ) ;
41+ // Remove the MicropythonFsHex functions we don't want to expose
42+ delete fsWrapper [ 'getIntelHex' ] ;
43+ delete fsWrapper [ 'getIntelHexBytes' ] ;
4144 }
4245
4346 /**
Original file line number Diff line number Diff line change @@ -733,7 +733,7 @@ function web_editor(config) {
733733 try {
734734 FS . write ( filename , fileBytes ) ;
735735 // Check if the filesystem has run out of space
736- var _ = FS . getIntelHex ( ) ;
736+ var _ = FS . getUniversalHex ( ) ;
737737 } catch ( e ) {
738738 if ( FS . exists ( filename ) ) {
739739 FS . remove ( filename ) ;
You can’t perform that action at this time.
0 commit comments