From 11d3b79ec66be7131ce7a4a69a186a37c92563f9 Mon Sep 17 00:00:00 2001 From: notaz Date: Wed, 16 Sep 2020 20:43:48 +0300 Subject: [PATCH] restore reasonable default port for Linux --- flashkit.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/flashkit.c b/flashkit.c index 00819c4..e6d5785 100644 --- a/flashkit.c +++ b/flashkit.c @@ -48,7 +48,7 @@ enum dev_cmd { CMD_RY = 4, CMD_DELAY = 5, }; -#define PAR_MODE8 (1 << 4) +#define PAR_MODE8 (1 << 4) /* but still drives noth LWR and UWR */ #define PAR_DEV_ID (1 << 5) #define PAR_SINGE (1 << 6) #define PAR_INC (1 << 7) @@ -466,7 +466,12 @@ static FILE *open_prep_read(const char *fname, long *size) return f; } -static const char *portname = "/dev/cu.usbserial-AL0254JM"; +static const char *portname = +#ifdef __APPLE__ + "/dev/cu.usbserial-AL0254JM"; +#else + "/dev/ttyUSB0"; +#endif static void usage(const char *argv0) { -- 2.39.2