notaz.gp2x.de
/
flashkit-mdc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
af23629
)
restore reasonable default port for Linux
author
notaz
<notasas@gmail.com>
Wed, 16 Sep 2020 17:43:48 +0000
(20:43 +0300)
committer
notaz
<notasas@gmail.com>
Wed, 16 Sep 2020 17:43:48 +0000
(20:43 +0300)
flashkit.c
patch
|
blob
|
blame
|
history
diff --git
a/flashkit.c
b/flashkit.c
index
00819c4
..
e6d5785
100644
(file)
--- a/
flashkit.c
+++ b/
flashkit.c
@@
-48,7
+48,7
@@
enum dev_cmd {
CMD_RY = 4,
CMD_DELAY = 5,
};
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)
#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;
}
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)
{
static void usage(const char *argv0)
{