Project

General

Profile

Revision 1427

Added by Chris Mar almost 10 years ago

updated wl_basic code, docs, and test. it's ready to go.

View differences:

wl_basic.c
96 96
 *  are handled with the default packet handler.
97 97
 * To access packet information, use PacketInfo current_packet.
98 98
 *
99
 * @param length a pointer to int to store the length of the data buffer
100
 * 
99 101
 * @return pointer to the data of the packet just received, 0 if no new packet
100 102
 **/
101
unsigned char* wl_basic_do_default( void ) {
103
unsigned char* wl_basic_do_default( int *length ) {
102 104
    wl_do();
103 105
    if (current_packet.new_flag == 1) { 
104 106
        current_packet.new_flag = 0;
107
        *length = current_packet.length;
105 108
        return current_packet.data;
106 109
    }
107 110
    return 0;

Also available in: Unified diff