Skip to content

Commit cf11c96

Browse files
committed
stm: Disable usart calls from C.
Fixes Issue adafruit#132.
1 parent bc1d369 commit cf11c96

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

stm/main.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ char *strdup(const char *str) {
307307
static const char *readline_hist[READLINE_HIST_SIZE] = {NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL};
308308

309309
void stdout_tx_str(const char *str) {
310-
usart_tx_str(str);
310+
//usart_tx_str(str); // disabled because usart is a Python object and we now need specify which USART port
311311
usb_vcp_send_str(str);
312312
}
313313

@@ -322,10 +322,10 @@ int readline(vstr_t *line, const char *prompt) {
322322
if (usb_vcp_rx_any() != 0) {
323323
c = usb_vcp_rx_get();
324324
break;
325-
} else if (usart_rx_any()) {
325+
} /*else if (usart_rx_any()) { // disabled because usart is a Python object and we now need specify which USART port
326326
c = usart_rx_char();
327327
break;
328-
}
328+
}*/
329329
sys_tick_delay_ms(1);
330330
if (storage_needs_flush()) {
331331
storage_flush();
@@ -775,7 +775,7 @@ int main(void) {
775775
switch_init();
776776
storage_init();
777777

778-
//usart_init(); disabled while wi-fi is enabled
778+
//usart_init(); disabled while wi-fi is enabled; also disabled because now usart is a proper Python object
779779

780780
int first_soft_reset = true;
781781

0 commit comments

Comments
 (0)