Project

General

Profile

Revision 138

More progress on charging... Sometimes the token ring drops out.

View differences:

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;

Also available in: Unified diff