Skip to content

Commit

Permalink
[conf] only error on unconfigured x_I2C_DEV if TARGET is ap
Browse files Browse the repository at this point in the history
  • Loading branch information
flixr committed Oct 11, 2013
1 parent ede94e0 commit d376864
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions conf/firmwares/subsystems/shared/imu_drotek_10dof_v2.makefile
Expand Up @@ -59,9 +59,11 @@ else ifeq ($(ARCH), stm32)
DROTEK_2_I2C_DEV ?= i2c2
endif

ifeq ($(TARGET), ap)
ifndef DROTEK_2_I2C_DEV
$(error Error: DROTEK_2_I2C_DEV not configured!)
endif
endif

# convert i2cx to upper/lower case
DROTEK_2_I2C_DEV_UPPER=$(shell echo $(DROTEK_2_I2C_DEV) | tr a-z A-Z)
Expand Down
2 changes: 2 additions & 0 deletions conf/firmwares/subsystems/shared/imu_gl1.makefile
Expand Up @@ -28,9 +28,11 @@ else ifeq ($(ARCH), stm32)
GL1_I2C_DEV ?= i2c2
endif

ifeq ($(TARGET), ap)
ifndef GL1_I2C_DEV
$(error Error: GL1_I2C_DEV not configured!)
endif
endif

# convert i2cx to upper/lower case
GL1_I2C_DEV_UPPER=$(shell echo $(GL1_I2C_DEV) | tr a-z A-Z)
Expand Down

0 comments on commit d376864

Please sign in to comment.