X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=flashkit-mdc.git;a=blobdiff_plain;f=flashkit.c;fp=flashkit.c;h=e6d57856450545d510f7acb4899c57b10fa184ee;hp=00819c460ae2350ebdc6f95a2f3a3f07d3b477b1;hb=11d3b79ec66be7131ce7a4a69a186a37c92563f9;hpb=af236294d24fb1bff39ee38bb15dca6d732d0f95 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) {