Skip to content

Commit ca58005

Browse files
fs: Remove getIntelHex methods from fswrapper.
1 parent 22882d6 commit ca58005

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

js/fs.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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
/**

python-main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)