summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-10-25 01:13:49 +0100
committerDamien George <damien.p.george@gmail.com>2014-10-25 01:14:39 +0100
commit8204db6831f3934df4091c2f450f08ffefa34bd1 (patch)
tree56372a9be63dc9021a19fbfd57820334e62c8fb0
parent21dfd207caf1ea07e7d821d20a19525b72913223 (diff)
downloadmicropython-8204db6831f3934df4091c2f450f08ffefa34bd1.tar.gz
micropython-8204db6831f3934df4091c2f450f08ffefa34bd1.zip
stmhal: Change fresh boot.py and main.py to use \r\n newlines.
This is so it's compatible with Windows.
-rw-r--r--stmhal/main.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/stmhal/main.c b/stmhal/main.c
index 0279e70b48..a946b86eea 100644
--- a/stmhal/main.c
+++ b/stmhal/main.c
@@ -137,17 +137,17 @@ STATIC mp_obj_t pyb_usb_mode(mp_obj_t usb_mode) {
MP_DEFINE_CONST_FUN_OBJ_1(pyb_usb_mode_obj, pyb_usb_mode);
static const char fresh_boot_py[] =
-"# boot.py -- run on boot-up\n"
-"# can run arbitrary Python, but best to keep it minimal\n"
-"\n"
-"import pyb\n"
-"#pyb.main('main.py') # main script to run after this one\n"
-"#pyb.usb_mode('CDC+MSC') # act as a serial and a storage device\n"
-"#pyb.usb_mode('CDC+HID') # act as a serial device and a mouse\n"
+"# boot.py -- run on boot-up\r\n"
+"# can run arbitrary Python, but best to keep it minimal\r\n"
+"\r\n"
+"import pyb\r\n"
+"#pyb.main('main.py') # main script to run after this one\r\n"
+"#pyb.usb_mode('CDC+MSC') # act as a serial and a storage device\r\n"
+"#pyb.usb_mode('CDC+HID') # act as a serial device and a mouse\r\n"
;
static const char fresh_main_py[] =
-"# main.py -- put your code here!\n"
+"# main.py -- put your code here!\r\n"
;
static const char fresh_pybcdc_inf[] =