Dave Hansen
05f820b9ad
add .gitignore
...
Thanks to Philip Jägenstedt <philip@foolip.org> for the patch
2011-09-18 15:24:25 -07:00
Dave Hansen
0a136224d1
need to check statret and errno
...
Or else errno might have an old ENOENT in it and we'll unnecessarily
create the control files.
2011-09-01 10:47:40 -07:00
Dave Hansen
5210a06d15
valgrind fixes
...
valgrind really does not like -static. It throws thousands of
false positives. So, make the build non-static, then fix up
a couple of valgrind-detected leaks.
2011-08-08 12:48:40 -07:00
Dave Hansen
e0c3d4250a
change parsing of debug cmdline options
...
This makes sure that no matter where you specify -d or
--debug that it will be in effect for the life of the
program.
2011-08-07 12:44:59 -07:00
Dave Hansen
9de09d5cde
fix some whitespace
2011-08-07 12:21:18 -07:00
Dave Hansen
1b00666595
flesh out control file creation
...
This should now automatically create control files in cases where
they were not present for some reason. This is probably because
the card was either formatted or it is new.
2011-08-07 12:18:41 -07:00
Dave Hansen
d6c51b2051
start to add support to create eyefi files
...
When a card is new or newly-formatted, it does not have the
control directory. This code starts to let us find where a
card is, even if that directory is not there.
2011-08-07 11:44:37 -07:00
Dave Hansen
c7d01cc896
break out mount search
...
this function was getting a bit long, so break it out before we add
more gunk in to it.
2011-08-07 11:05:29 -07:00
Dave Hansen
312d60ce78
fix up mount debugging
...
* give the stat return code in a print statment
* make sure to give the examined mount back, not
the empty eyefi_mount
2011-08-06 08:50:09 -07:00
Dave Hansen
6b25072ac2
add direct more support infrastructure
2011-08-06 08:49:56 -07:00
Dave Hansen
fc471af8e4
fix compile warnings
2011-05-09 12:31:18 -07:00
Dave Hansen
3ce35e0881
work to enable direct mode
2011-05-09 12:09:13 -07:00
Dave Hansen
96234a7a0a
rework wlan disable code (may have been broken)
2011-04-19 11:29:28 -07:00
Dave Hansen
4f11c5da33
clean up some whitespace
2011-03-25 15:36:15 -07:00
Dave Hansen
c9d03037fb
consolidate some O commands
2011-03-25 15:34:24 -07:00
Dave Hansen
7c91594691
clean up some debugging cruft
2011-03-25 14:37:41 -07:00
Dave Hansen
b9e4c610fd
add upload status commands
...
I found these by watching my Canon S95. They let you monitor
the progress that a file is making during an upload.
2011-03-25 14:35:45 -07:00
Dave Hansen
986a301571
fix returns and compiler warnings for endless functions
2011-03-24 16:29:39 -07:00
Dave Hansen
e1215b135b
hook up enless transfer mode to command line
2011-03-24 16:16:06 -07:00
Dave Hansen
1351ae9851
support endless transfer mode
...
This lets you enable or disable the mode. It also lets you set the
trigger percentage.
2011-03-24 16:05:59 -07:00
Dave Hansen
1119862d9f
clean up a bit of whitespace
2011-03-24 15:18:06 -07:00
Dave Hansen
c7a3c70407
fix force argument handling
2011-03-24 15:17:42 -07:00
Dave Hansen
564a067707
change _ to - in help text
2011-03-20 17:31:15 -07:00
Dave Hansen
4a955df584
hook up wifi on/off code
2011-03-20 14:31:58 -07:00
Dave Hansen
9dbac12966
fix up transfer mode comments
2011-03-20 14:15:07 -07:00
Dave Hansen
c954aaf776
remove some transfer mode debugging cruft
2011-03-20 14:04:41 -07:00
Dave Hansen
7e12e343dd
fix up SELSHARE vs. SELUPLOAD
...
Whoops. I mixed up the string ordering of SELSHARE and SELUPLOAD.
Reorder the transfer mode function to always fetch and print the
current mode, even after a set operatio
Also remove some cruft I just added.
2011-03-20 13:11:38 -07:00
Dave Hansen
420927db5e
allow querying and setting of transfer modes
...
I probably need to pull the information about these out of the Eye-Fi
documentation. But, here's the code.
Note that the string names that are specified also mach the values
that you see in the card log.
2011-03-20 13:01:59 -07:00
Dave Hansen
719779c6f4
fix some ascii to hex conversion issues
2011-03-20 11:37:29 -07:00
Dave Hansen
592cc73b5b
don't leak FD
...
If this was called and we returned the cached mount, we leak the fopen().
Move the fopen down below the return.
2010-10-04 16:01:38 -07:00
Dave Hansen
ca5069404b
Remove unnecessary system()
...
> > Also, in eyefi-freebsd.c I forgot to remove
> > > system("cat /proc/mounts >&2");
> > > > in debug section, as it makes no sense anyway.
2010-09-15 10:28:20 -07:00
Dave Hansen
46f43282c9
FreeBSD support
...
From: Wesha the Leopard <wesha@wesha.dyndns.org>
To: dave@sr71.net
Subject: FreeBSD patches
Date: 09/13/2010 08:47:28 AM (Mon, 13 Sep 2010 10:47:28 -0500 (CDT))
10:21 http://pastebin.com/jaa44JsG
10:22 http://pastebin.com/FtSVCbPV
10:24 http://pastebin.com/wS5D9Huw
--Wesha.
2010-09-15 10:26:59 -07:00
Dave Hansen
09eaf82d41
add "wrote" variable
...
don't overwrite the write() result with the fd_flush() result.
2010-09-15 10:13:39 -07:00
Dave Hansen
00ba8a61d6
Add some new code to handle D90 commands
...
I've pulled the card out of my Nikon D90 a few times while
it is accessing the card. I can then put it in the PC and
see what the D90 was trying to do.
I've noticed two new commands: one to disable the WiFi on
the card, and the other to check to see if the WiFi is
currently disabled or not.
I haven't hooked these up to the user interface yet.
I also think the 'o' 13 command tells which ESSID the card
is currently associated with. 'o' 12 might be something to
do with pending uploads.
2010-08-09 13:10:11 -07:00
Dave Hansen
0c45dfb98b
Add firmware fetch perl script
2010-05-04 10:53:06 -07:00
Nathan Summers
d5ca2350cd
64-bit fixes
2009-03-26 15:31:19 -07:00
Nathan Summers
3bc61d296f
Support for 40-bit WEP keys.
2009-03-26 15:31:17 -07:00
Nathan Summers
210ba89c20
Added dependencies on eyefi-config.h
...
Added dependencies on eyefi-config.h for all appropriate object files
in the Makefile.
2009-03-26 15:31:16 -07:00
Dave Hansen
347bbf119a
fix gcc warning
2009-03-26 15:28:07 -07:00
Dave Hansen
447da84444
Don't clobber password.
...
We used to clobber the password that came in from the user
when converting it from ASCII to binary for WEP. That
screwed it up because we need to use it twice: once for
testing, and once for the actual addition.
2009-02-17 09:32:22 -08:00
Dave Hansen
468520221a
Make network scan list a bit cleaner.
2009-02-05 12:57:57 -08:00
Dave Hansen
e81e16ef8d
Replace O_DIRECT with posix_fadvise(). This is easier to compile
...
and does not draw Linus's ire http://lkml.org/lkml/2007/1/10/233 .
2009-02-05 12:50:25 -08:00
Dave Hansen
de5918a05d
Add some new WEP code and some experimental non-working
...
attempts at updating the card firmware.
2008-12-18 13:25:37 -08:00
Dave Hansen
84bbcda46c
prefix the network types with NET_
...
fix vprintf vs printf bug
do some strdups with optargs
2008-08-14 18:47:20 -07:00
Dave Hansen
6afcff686f
more portability improvements
2008-07-13 09:52:49 -07:00
Dave Hansen
0e17d59461
Add support for other operating systems:
...
chdk
OS X
2008-07-12 12:49:26 -07:00
Dave Hansen
5c7c83f0e6
Don't zero-out reqc, it might confuse the card
...
(it doesn show up in the log when I do this)
Start propogating error codes back from a bunch of
functions. We need this for the CHDK port because
we can't just exit() there.
Add dumping of the firmware version string.
2008-06-13 15:45:43 -07:00
Dave Hansen
e1f571250b
better error message
2008-06-11 12:30:28 -07:00
dave
3d8dcfafa2
add new files
2008-05-23 10:00:40 -07:00
dave
d02d7108db
Make the mount finding more comprehensive, and
...
move it around so the debugging flag can actually
be made to work.
2008-04-21 14:56:14 -07:00