Skip to content

Commit e825431

Browse files
committed
Fix nRF51 baud table size
Increase the number of entries in the baud rate table from 17 to 18. This problem was introduced in the patch: 0a6e345 - Add support for 56000 baud on nrf51
1 parent a8616dc commit e825431

File tree

1 file changed

+1
-1
lines changed
  • libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822

1 file changed

+1
-1
lines changed

libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/serial_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
static uint32_t serial_irq_ids[UART_NUM] = {0};
3131
static uart_irq_handler irq_handler;
32-
static const int acceptedSpeeds[17][2] = {
32+
static const int acceptedSpeeds[18][2] = {
3333
{1200, UART_BAUDRATE_BAUDRATE_Baud1200},
3434
{2400, UART_BAUDRATE_BAUDRATE_Baud2400},
3535
{4800, UART_BAUDRATE_BAUDRATE_Baud4800},

0 commit comments

Comments
 (0)