Skip to content

Commit e076f14

Browse files
committed
text fixes
1 parent 8a098c1 commit e076f14

File tree

1 file changed

+3
-3
lines changed
  • ports/stm32f4/common-hal/busio

1 file changed

+3
-3
lines changed

ports/stm32f4/common-hal/busio/UART.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ STATIC USART_TypeDef * assign_uart_or_throw(busio_uart_obj_t *self, bool pin_eva
9494
return mcu_uart_banks[uart_index];
9595
} else {
9696
if (uart_taken) {
97-
mp_raise_ValueError(translate("Hardware busy, try alternative pins"));
97+
mp_raise_ValueError(translate("Hardware in use, try alternative pins"));
9898
} else {
9999
mp_raise_ValueError(translate("Invalid UART pin selection"));
100100
}
@@ -229,7 +229,7 @@ void common_hal_busio_uart_construct(busio_uart_obj_t *self,
229229
(self->tx->uart_index-1), uart_taken);
230230
} else {
231231
//both pins cannot be empty
232-
mp_raise_ValueError(translate("You must supply at least one UART pin"));
232+
mp_raise_ValueError(translate("Supply at least one UART pin"));
233233
}
234234

235235
//Other errors
@@ -298,7 +298,7 @@ void common_hal_busio_uart_construct(busio_uart_obj_t *self,
298298
mp_raise_ValueError(translate("Could not start interrupt, RX busy"));
299299
}
300300

301-
//start the recieve interrupt chain
301+
//start the receive interrupt chain
302302
HAL_NVIC_DisableIRQ(self->irq); //prevent handle lock contention
303303
HAL_UART_Receive_IT(&self->handle, &self->rx_char, 1);
304304
HAL_NVIC_SetPriority(self->irq, UART_IRQPRI, UART_IRQSUB_PRI);

0 commit comments

Comments
 (0)