From e7de60ebbcb933617cad41e7522b3c59437fd4c8 Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Sun, 23 Feb 2020 20:21:34 +0000 Subject: [PATCH] linux: Reduce esptun default baudrate more Changed to `115200 * 4`. It's hard to get this stable... --- linux/esptun.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux/esptun.c b/linux/esptun.c index a302fcb..6e57812 100644 --- a/linux/esptun.c +++ b/linux/esptun.c @@ -29,8 +29,8 @@ #define ESP_BUFSIZE 2000 /* buffer for reading from tun/tap interface, must be >= 1500 */ #define TAP_BUFSIZE 2000 -/* baud rate (max 115200*40 = 4608000) */ -#define BAUDRATE (115200 * 10) +/* baud rate (max 115200*40 = 4608000). TODO: make this a command line argument. */ +#define BAUDRATE (115200 * 4) /** Macro for writing static strings without needing strlen. */ #define S(s) (const uint8_t*)(s), (sizeof(s)-1)