Project

General

Profile

Revision 1303

Added read_eeprom to test suite and robot code so we can read the robot ID and BOM type from eeprom

View differences:

comm_robot.c
257 257
	}
258 258
}
259 259

  
260
bool robot_read_eeprom(uint8_t *id, uint8_t *bom_type)
261
{
262
	send_request_packet(station_robot_read_eeprom, NULL, 0);
263
	
264
	// Now the received data is in received_buffer/received_length
265
	if(received_length >= 2)
266
	{
267
		*id = received_buffer[0];
268
    *bom_type = received_buffer[1];
269
		return true;
270
	}
271
	else
272
	{
273
		return false;
274
	}
275
}
260 276

  
261 277
// ***********************
262 278
// ** Receive callbacks **

Also available in: Unified diff