Fix call to enable pyb_usart_global_debug.

pull/496/head
Dave Hylands 2014-04-15 12:20:31 -07:00
rodzic 3b108e7699
commit 00adf67179
1 zmienionych plików z 9 dodań i 2 usunięć

Wyświetl plik

@ -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