File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
ports/stm32f4/common-hal/busio Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ STATIC USART_TypeDef * assign_uart_or_throw(busio_uart_obj_t *self, bool pin_eva
94
94
return mcu_uart_banks [uart_index ];
95
95
} else {
96
96
if (uart_taken ) {
97
- mp_raise_ValueError (translate ("Hardware busy , try alternative pins" ));
97
+ mp_raise_ValueError (translate ("Hardware in use , try alternative pins" ));
98
98
} else {
99
99
mp_raise_ValueError (translate ("Invalid UART pin selection" ));
100
100
}
@@ -229,7 +229,7 @@ void common_hal_busio_uart_construct(busio_uart_obj_t *self,
229
229
(self -> tx -> uart_index - 1 ), uart_taken );
230
230
} else {
231
231
//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" ));
233
233
}
234
234
235
235
//Other errors
@@ -298,7 +298,7 @@ void common_hal_busio_uart_construct(busio_uart_obj_t *self,
298
298
mp_raise_ValueError (translate ("Could not start interrupt, RX busy" ));
299
299
}
300
300
301
- //start the recieve interrupt chain
301
+ //start the receive interrupt chain
302
302
HAL_NVIC_DisableIRQ (self -> irq ); //prevent handle lock contention
303
303
HAL_UART_Receive_IT (& self -> handle , & self -> rx_char , 1 );
304
304
HAL_NVIC_SetPriority (self -> irq , UART_IRQPRI , UART_IRQSUB_PRI );
You can’t perform that action at this time.
0 commit comments