Project

General

Profile

Revision 138

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

View differences:

xbee.c
144 144
	#endif
145 145
	sei();
146 146
	#else
147
	xbee_stream = open("/dev/ttyUSB0", O_RDWR);
147
	xbee_stream = open(XBEE_PORT, O_RDWR);
148 148
	if (xbee_stream == -1 || lockf(xbee_stream, F_TEST, 0) != 0)
149
		xbee_stream = open("/dev/ttyUSB1", O_RDWR);
149
		xbee_stream = open(XBEE_PORT2, O_RDWR);
150 150
	if (xbee_stream == -1 || lockf(xbee_stream, F_TEST, 0) != 0)
151 151
	{
152 152
		printf("Failed to open connection to XBee.\r\n");

Also available in: Unified diff