mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-05 06:54:49 +08:00
[modules] temp_temod: fix TEMOD_I2C_DEV
thanks @philipan
This commit is contained in:
@@ -14,12 +14,12 @@
|
|||||||
<event fun="temod_event()"/>
|
<event fun="temod_event()"/>
|
||||||
<makefile target="ap">
|
<makefile target="ap">
|
||||||
<raw>
|
<raw>
|
||||||
TEMOD_DEV ?= i2c0
|
TEMOD_I2C_DEV ?= i2c0
|
||||||
TEMOD_DEV_LOWER=$(shell echo $(TEMOD_DEV) | tr A-Z a-z)
|
TEMOD_I2C_DEV_LOWER=$(shell echo $(TEMOD_I2C_DEV) | tr A-Z a-z)
|
||||||
TEMOD_DEV_UPPER=$(shell echo $(TEMOD_DEV) | tr a-z A-Z)
|
TEMOD_I2C_DEV_UPPER=$(shell echo $(TEMOD_I2C_DEV) | tr a-z A-Z)
|
||||||
</raw>
|
</raw>
|
||||||
<define name="USE_$(TEMOD_DEV_UPPER)"/>
|
<define name="USE_$(TEMOD_I2C_DEV_UPPER)"/>
|
||||||
<define name="TEMOD_DEV" value="$(TEMOD_DEV_LOWER)"/>
|
<define name="TEMOD_I2C_DEV" value="$(TEMOD_I2C_DEV_LOWER)"/>
|
||||||
<file name="temp_temod.c"/>
|
<file name="temp_temod.c"/>
|
||||||
</makefile>
|
</makefile>
|
||||||
</module>
|
</module>
|
||||||
|
|||||||
Reference in New Issue
Block a user