Skip to content

Commit 8204db6

Browse files
committed
stmhal: Change fresh boot.py and main.py to use \r\n newlines.
This is so it's compatible with Windows.
1 parent 21dfd20 commit 8204db6

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

stmhal/main.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -137,17 +137,17 @@ STATIC mp_obj_t pyb_usb_mode(mp_obj_t usb_mode) {
137137
MP_DEFINE_CONST_FUN_OBJ_1(pyb_usb_mode_obj, pyb_usb_mode);
138138

139139
static const char fresh_boot_py[] =
140-
"# boot.py -- run on boot-up\n"
141-
"# can run arbitrary Python, but best to keep it minimal\n"
142-
"\n"
143-
"import pyb\n"
144-
"#pyb.main('main.py') # main script to run after this one\n"
145-
"#pyb.usb_mode('CDC+MSC') # act as a serial and a storage device\n"
146-
"#pyb.usb_mode('CDC+HID') # act as a serial device and a mouse\n"
140+
"# boot.py -- run on boot-up\r\n"
141+
"# can run arbitrary Python, but best to keep it minimal\r\n"
142+
"\r\n"
143+
"import pyb\r\n"
144+
"#pyb.main('main.py') # main script to run after this one\r\n"
145+
"#pyb.usb_mode('CDC+MSC') # act as a serial and a storage device\r\n"
146+
"#pyb.usb_mode('CDC+HID') # act as a serial device and a mouse\r\n"
147147
;
148148

149149
static const char fresh_main_py[] =
150-
"# main.py -- put your code here!\n"
150+
"# main.py -- put your code here!\r\n"
151151
;
152152

153153
static const char fresh_pybcdc_inf[] =

0 commit comments

Comments
 (0)