androbi-com / LoRa-E5-Mini-EndNode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compile issue

Zeddy- opened this issue · comments

Hi,

just opened the project and tried compiling after enabling the I2C
image

c:\st\stm32cubeide_1.9.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127\tools\arm-none-eabi\bin\ld.exe: ./Core/Src/main.o:C:/Users/melli/Downloads/LoRa-E5-Mini-EndNode-I2C/LoRa-E5-Mini-EndNode-main/Core/Inc/aht20.h:28: multiple definition of `aTxBuffer'; ./Core/Src/aht20.o:C:/Users/melli/Downloads/LoRa-E5-Mini-EndNode-I2C/LoRa-E5-Mini-EndNode-main/Core/Inc/aht20.h:28: first defined here

You should be able to resolve this by moving the declarations of aTxBuffer and aRxBuffer from aht20.h to aht20.c.

closing issue as no feedback