File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,9 @@ void reset_mp() {
173
173
MP_STATE_PORT (mp_kbd_exception ) = mp_obj_new_exception (& mp_type_KeyboardInterrupt );
174
174
175
175
pin_init0 ();
176
+
177
+ pyexec_file ("boot.py" );
178
+ pyexec_file ("main.py" );
176
179
}
177
180
178
181
int main (int argc , char * * argv ) {
@@ -189,15 +192,6 @@ int main(int argc, char **argv) {
189
192
int stack_dummy ;
190
193
reset_mp ();
191
194
192
- #if MICROPY_REPL_EVENT_DRIVEN
193
- pyexec_event_repl_init ();
194
- for (;;) {
195
- int c = mp_hal_stdin_rx_chr ();
196
- if (pyexec_event_repl_process_char (c )) {
197
- break ;
198
- }
199
- }
200
- #else
201
195
// Main script is finished, so now go into REPL mode.
202
196
// The REPL mode can change, or it can request a soft reset.
203
197
int exit_code = 0 ;
@@ -215,7 +209,6 @@ int main(int argc, char **argv) {
215
209
break ;
216
210
}
217
211
}
218
- #endif
219
212
mp_deinit ();
220
213
return 0 ;
221
214
}
You can’t perform that action at this time.
0 commit comments