[riot-notifications] [RIOT-OS/RIOT] tests/periph_uart: fix baudrate truncation (#10698)

MrKevinWeiss notifications at github.com
Thu Jan 3 15:47:10 CET 2019

### Contribution description
Since some boards an int is 16 bits the atoi truncates values.
This commit using a long instead of an int.

### Testing procedure
On any board where an int is 16 bits (such as the arduino-mega2560
run `BOARD=arduino-mega2560 make flash term -C tests/periph_uart/`
initialize with 115200 and try sending to something else with that same baudrate (loopback shouldn't work) or scoping it.

### Issues/PRs references
Fixes #10517

You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * tests/periph_uart: fix baudrate truncation

-- File Changes --

    M tests/periph_uart/main.c (2)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190103/6033f41b/attachment.html>

More information about the notifications mailing list