Skip to content

Commit c9c946f

Browse files
committed
Made the constant array in serial_baud() static.
1 parent b2de59d commit c9c946f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/serial_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ void serial_baud(serial_t *obj, int baudrate)
350350
// directly) to make it possible to set special baud rates like 56000
351351
// or 31250.
352352

353-
uint32_t const acceptedSpeeds[][2] = {
353+
static uint32_t const acceptedSpeeds[][2] = {
354354
{ 1200, UART_BAUDRATE_BAUDRATE_Baud1200 },
355355
{ 2400, UART_BAUDRATE_BAUDRATE_Baud2400 },
356356
{ 4800, UART_BAUDRATE_BAUDRATE_Baud4800 },

0 commit comments

Comments
 (0)