Use the I2C bus number from the board config, not a hardcoded value.

This commit is contained in:
px4dev 2013-04-26 13:00:48 -07:00
parent 264cf65d0f
commit 46085b43d1

View File

@ -92,6 +92,7 @@
#include <nuttx/config.h>
#include <arch/board/board.h>
#include <drivers/device/i2c.h>
#include <sys/types.h>
@ -841,7 +842,7 @@ int
blinkm_main(int argc, char *argv[])
{
int i2cdevice = 3;
int i2cdevice = PX4_I2C_BUS_EXPANSION;
int blinkmadr = 9;
int x;