Project

General

Profile

Revision 1466

Added by Brad Neuman over 11 years ago

started on the ref bot, added some error checking to the testbench
setting the channel doesnt seem to work, so everyone will have to use C

View differences:

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

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

  
69
    if(ret) {
70
      printf("ERROR: wl_basic_init_default returned %d\n", ret);
71
      return ret;
72
    }
73

  
74
    ret = wl_set_channel(channel);
75

  
76
    if(ret) {
77
      printf("ERROR: set channel failed! %d\n", ret);
78
      return ret;
79
    }
80

  
70 81
    printf("Testing communications\n\n");
71 82

  
72 83
    // Receive TAG, send ACK

Also available in: Unified diff