diff options
author | Dave Hylands <dhylands@gmail.com> | 2014-04-15 12:20:31 -0700 |
---|---|---|
committer | Dave Hylands <dhylands@gmail.com> | 2014-04-15 12:20:31 -0700 |
commit | 00adf671795534d8a32a9ddab735100c40424f46 (patch) | |
tree | 8c697f7a76b05d2155d1afe87bc2036bb7dc4ec2 | |
parent | 3b108e76996ed2e159895a606d652983022680a6 (diff) | |
download | micropython-00adf671795534d8a32a9ddab735100c40424f46.tar.gz micropython-00adf671795534d8a32a9ddab735100c40424f46.zip |
Fix call to enable pyb_usart_global_debug.
-rw-r--r-- | stmhal/main.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/stmhal/main.c b/stmhal/main.c index 2f40f140a0..116a259955 100644 --- a/stmhal/main.c +++ b/stmhal/main.c @@ -254,8 +254,15 @@ soft_reset: // Change #if 0 to #if 1 if you want REPL on USART_6 (or another usart) // as well as on USB VCP #if 0 - pyb_usart_global_debug = pyb_Usart(MP_OBJ_NEW_SMALL_INT(PYB_USART_YA), - MP_OBJ_NEW_SMALL_INT(115200)); + { + mp_obj_t args[2] = { + MP_OBJ_NEW_SMALL_INT(PYB_USART_6), + MP_OBJ_NEW_SMALL_INT(115200), + }; + pyb_usart_global_debug = pyb_usart_type.make_new((mp_obj_t)&pyb_usart_type, + sizeof(args) / sizeof(args[0]), + 0, args); + } #else pyb_usart_global_debug = NULL; #endif |