[riot-notifications] [RIOT-OS/RIOT] RFC: UART enhanced settings (#10743)

Yegor Yefremov notifications at github.com
Tue Jan 29 15:33:04 CET 2019


yegorich commented on this pull request.



> @@ -67,6 +76,59 @@ static int parse_dev(char *arg)
     return dev;
 }
 
+#ifdef MODULE_PERIPH_UART_MODECFG
+static uart_data_bits_t parse_data_bits(char *arg)
+{
+    int data_bits = atoi(arg) - 5;
+
+    if (data_bits >= 0 && data_bits < data_bits_lut_len)
+        return data_bits_lut[data_bits];

Fixed.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10743#discussion_r251856812
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190129/d64a997f/attachment.html>


More information about the notifications mailing list