Don't run default code that displays a button
This commit is contained in:
parent
11f8172cc7
commit
17582abf09
@ -76,6 +76,7 @@ $(BUILD)/micropython.js: $(OBJ) library.js wrapper.js
|
||||
$(ECHO) "LINK $(BUILD)/firmware.js"
|
||||
$(Q)emcc $(LDFLAGS) -o $(BUILD)/firmware.js $(OBJ) $(JSFLAGS)
|
||||
cat wrapper.js $(BUILD)/firmware.js > $@
|
||||
cp $@ $(BUILD)/../lvgl_mp.js
|
||||
|
||||
min: $(BUILD)/micropython.js
|
||||
uglifyjs $< -c -o $(BUILD)/micropython.min.js
|
||||
|
||||
@ -134,10 +134,7 @@
|
||||
mp_js_process_char(key.charCodeAt(i));
|
||||
}
|
||||
});
|
||||
/* Run init script */
|
||||
for(var i = 0;i < lines.length;i++){
|
||||
mp_js_do_str(lines[i]);
|
||||
}
|
||||
|
||||
|
||||
/* Run custom script if passed */
|
||||
var custom = undefined;
|
||||
@ -149,7 +146,12 @@
|
||||
console.log("Custom script: " + custom);
|
||||
if(custom !== undefined && custom !== null)
|
||||
processScriptArg(custom);
|
||||
|
||||
else {
|
||||
/* Run init script */
|
||||
for(var i = 0;i < lines.length;i++){
|
||||
mp_js_do_str(lines[i]);
|
||||
}
|
||||
}
|
||||
/*Setup lv_task_handler loop*/
|
||||
var the_mp_handle_pending = Module.cwrap('mp_handle_pending', null);
|
||||
function handle_pending() {
|
||||
|
||||
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user