OSDN Git Service
(root)
/
stock
/
stock.osdn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7150892
)
FTDI/FTDI_linux.h: temp fix for libftdi1.0
author
Pawel Jewstafjew
<Pawel.Jewstafjew@gmail.com>
Fri, 21 Sep 2018 18:52:21 +0000
(19:52 +0100)
committer
Pawel Jewstafjew
<Pawel.Jewstafjew@gmail.com>
Fri, 21 Sep 2018 18:52:21 +0000
(19:52 +0100)
FTDI/FTDI_linux.h
patch
|
blob
|
history
diff --git
a/FTDI/FTDI_linux.h
b/FTDI/FTDI_linux.h
index
dc2e7b5
..
1dd21a5
100644
(file)
--- a/
FTDI/FTDI_linux.h
+++ b/
FTDI/FTDI_linux.h
@@
-145,6
+145,7
@@
public:
bool set_rts(int state) {
return (ftdi_setrts(&ftdic, state) == 0);
}
+#if 0 // FIXME: update to libftdi 1.0
int eeprom_read(int addr) {
unsigned short value;
if (ftdi_read_eeprom_location(&ftdic, addr, &value) == 0)
@@
-161,6
+162,7
@@
public:
bool eeprom_write_all(const unsigned char * eeprom) {
return ftdi_write_eeprom(&ftdic, (unsigned char *)eeprom) == 0;
}
+#endif
#if 0
FT_STATUS list_devices(VOID * arg1, VOID * arg2, DWORD flags);
FT_STATUS open_ex(); //OpenEx(PVOID, DWORD);