Project

General

Profile

Revision 119

Minor wireless updates (for debugging off)

View differences:

trunk/code/projects/libwireless/lib/queue.c
24 24
Queue* queue_create()
25 25
{
26 26
	Queue* q = (Queue*)malloc(sizeof(Queue));
27
	
28
	if (q == NULL)
29
	{
30
		WL_DEBUG_PRINT("Out of memory.\r\n");
31
		return NULL;
32
	}
33
	
27 34
	q->head = NULL;
28 35
	q->size = 0;
29 36
	return q;
trunk/code/projects/libwireless/lib/wl_defs.h
2 2
//#define ROBOT
3 3

  
4 4
//uncomment this line for debug information
5
#define WL_DEBUG
5
//#define WL_DEBUG
6 6

  
7 7
// Packet Groups and Types
8 8

  
trunk/code/projects/libwireless/lib/wireless.c
84 84
	timer_val.it_interval = interval;
85 85
	timer_val.it_value = first_time;
86 86
	if(setitimer(ITIMER_REAL,&timer_val,NULL)==-1)
87
		{
87
	{
88 88
		WL_DEBUG_PRINT("Error creating a timer.\r\n"); 
89 89
		perror("Failure's cause");
90 90
		exit(1); 
......
348 348
		{
349 349
			WL_DEBUG_PRINT("No response received.\r\n");
350 350
			if (wl_buf[2] == 2)
351
			{
351 352
				WL_DEBUG_PRINT("CCA Failure\r\n");
353
			}
352 354
			if (wl_buf[2] == 3)
355
			{
353 356
				WL_DEBUG_PRINT("Purged\r\n");
357
			}
354 358
		}
355 359
		
356 360
		if (wl_packet_groups[group] != NULL &&

Also available in: Unified diff