From 9dbac12966565ead033ee5264523f61a088ab2b4 Mon Sep 17 00:00:00 2001 From: Dave Hansen Date: Sun, 20 Mar 2011 14:07:26 -0700 Subject: [PATCH] fix up transfer mode comments --- eyefi-config.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/eyefi-config.c b/eyefi-config.c index d50abe8..4311377 100755 --- a/eyefi-config.c +++ b/eyefi-config.c @@ -506,9 +506,11 @@ enum transfer_mode fetch_transfer_mode(void) void set_transfer_mode(enum transfer_mode transfer_mode) { /* - * This is complete voodoo to me. I've only ever seen - * a single example of this, so it's hard to figure out - * the structure at all. + * I think these 'O' commands are the "set" version + * of the little 'o' commands which are "gets". + * + * I think the 0x1 here is the length of the next + * argument. */ char new_cmd[] = {'O', TRANSFER_MODE, 0x1, transfer_mode}; write_to(REQM, &new_cmd[0], 4);