Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#27 programming error prevents to use bluetooth _and_ irda

closed-fixed
nobody
None
5
2005-01-10
2004-12-21
Anonymous
No

Hi,

I try to use obexftp-0.10.6.
Ever wondered why, now that bluetooth works, irda
does not work anymore?
Well, If you see something like:
if ( ctrans ) {
DEBUG(2, "Do the cable-OBEX!\n");
cli->obexhandle = OBEX_Init(OBEX_TRANS_CUSTOM,
cli_obex_event, 0);
}
else
#ifdef HAVE_BLUETOOTH
cli->obexhandle =
OBEX_Init(OBEX_TRANS_BLUETOOTH, cli_obex_event,
0);
#else
cli->obexhandle = OBEX_Init(OBEX_TRANS_IRDA,
cli_obex_event, 0);
#endif

I just ask myself: who progams like that?
If you compile with HAVE_BLUETOOTH, irda does not
work, if you compile without HAVE_BLUETOOTH,
bluetooth does not work but irda does. Also, your
HAVE_BLUETOOTH cases in main() are a bit wrong.

I guess that this should be easy to fix :-/

HS

Discussion

    • status: open --> closed-fixed