|
From: Brian G. <br...@ge...> - 2006-05-24 16:46:10
|
On May 22, 2006, at 10:12 AM, Brandon Sights wrote: > > if (cf->ReadDeviceAddr(&(this->m_bumper_addr), section, > "provides", PLAYER_BUMPER_CODE, 0, NULL) != 0) > > if (cf->ReadDeviceAddr(&(this->m_dio_addr), section, > "provides", PLAYER_DIO_CODE, 0, NULL) != 0) Change the 5th arg in each call to ReadDeviceAddr to be -1. By giving a 0 there, you're requiring that the bumper and dio interfaces both be given as the first entry in the 'requires' tuple (which is impossible). An index of -1 is a don't-care. In general, you shouldn't care in what order the user specified the interfaces in the 'requires' tuple. This reminds me that we discussed removing that argument from ReadDeviceAddr exactly because it causes confusion like this.... brian. |