Project

General

Profile

Revision 1461

Added by Brad Neuman over 13 years ago

updated all the library code to have sensible _init behavior.
Almost all of the library components have a global variable which gets set after init and the functions inside will fail with an error code if init has not been called. Also, the init functions themselves check this variable and will bail out without doing any damage if that init has already been called

View differences:

main.c
62 62
    delay8.tv_sec = 2;
63 63
    delay8.tv_nsec = 800000000;
64 64

  
65
    wl_set_com_port("/dev/ttyUSB0");
65
    wl_set_com_port("/dev/ttyUSB1");
66 66
    // set up wireless
67 67
    wl_basic_init_default();
68 68
    wl_set_channel(channel);

Also available in: Unified diff