Project

General

Profile

Revision 920

Added by Ryan Cahoon over 15 years ago

Fixed error when getting xbee address during init on computer

View differences:

trunk/code/projects/libwireless/lib/xbee.c
303 303

  
304 304
	  usleep(1000);
305 305

  
306
	  if (ret == -1) {
306
    /* xbee_get_packet returns -1 when passed NULL, so ret==-1 shouldn't be an error */
307
	  /*if (ret == -1) {
307 308
	    WL_DEBUG_PRINT("xbee_get_packet(NULL) failed.\n");
308 309
	    return -1;
309
	  }
310
	  }*/
310 311
	}
311 312
#else
312 313
	//wait to return until the address is set
......
782 783
	}
783 784

  
784 785
	//we will take care of the packet
785
	if (xbee_handle_packet(xbee_buf + 3, len) != 0) {
786
	if (xbee_handle_packet(xbee_buf + 3, len) != 1) {
786 787
		return -1;
787 788
	}
788 789

  

Also available in: Unified diff