From: notaz Date: Wed, 16 Sep 2020 17:43:48 +0000 (+0300) Subject: restore reasonable default port for Linux X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11d3b79ec66be7131ce7a4a69a186a37c92563f9;p=flashkit-mdc.git restore reasonable default port for Linux --- 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) {