Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce OT namespce to avoid clash with other libraries #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dwrobel
Copy link
Contributor

@dwrobel dwrobel commented Apr 30, 2019

Fixes the following clash with STM32 platform from:
https://github.com/stm32duino/Arduino_Core_STM32

opentherm_library/src/OpenTherm.h:21:2: error: 'SUCCESS' conflicts with a previous declaration
SUCCESS,
^~~~~~~
In file included from /home/sw/.arduino15/packages/STM32/hardware/stm32/1.6.0-dev/cores/arduino/stm32/stm32_def.h:29,
from /home/sw/.arduino15/packages/STM32/hardware/stm32/1.6.0-dev/cores/arduino/stm32/clock.h:43,
from /home/sw/.arduino15/packages/STM32/hardware/stm32/1.6.0-dev/cores/arduino/wiring_time.h:23,
from /home/sw/.arduino15/packages/STM32/hardware/stm32/1.6.0-dev/cores/arduino/wiring.h:38,
from /home/sw/.arduino15/packages/STM32/hardware/stm32/1.6.0-dev/cores/arduino/Arduino.h:32,
from /home/sw/Arduino/OT-Adapter/.build/sketch/OT-Adapter.ino.cpp:1:
/home/sw/.arduino15/packages/STM32/hardware/stm32/1.6.0-dev/system/Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h:185:3: note: previous declaration 'ErrorStatus SUCCESS'
SUCCESS = !ERROR
^~~~~~~

Fixes the following clash with STM32 platform from:
  https://github.com/stm32duino/Arduino_Core_STM32

opentherm_library/src/OpenTherm.h:21:2: error: 'SUCCESS' conflicts with a previous declaration
  SUCCESS,
  ^~~~~~~
In file included from /home/sw/.arduino15/packages/STM32/hardware/stm32/1.6.0-dev/cores/arduino/stm32/stm32_def.h:29,
                 from /home/sw/.arduino15/packages/STM32/hardware/stm32/1.6.0-dev/cores/arduino/stm32/clock.h:43,
                 from /home/sw/.arduino15/packages/STM32/hardware/stm32/1.6.0-dev/cores/arduino/wiring_time.h:23,
                 from /home/sw/.arduino15/packages/STM32/hardware/stm32/1.6.0-dev/cores/arduino/wiring.h:38,
                 from /home/sw/.arduino15/packages/STM32/hardware/stm32/1.6.0-dev/cores/arduino/Arduino.h:32,
                 from /home/sw/Arduino/OT-Adapter/.build/sketch/OT-Adapter.ino.cpp:1:
/home/sw/.arduino15/packages/STM32/hardware/stm32/1.6.0-dev/system/Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f1xx.h:185:3: note: previous declaration 'ErrorStatus SUCCESS'
   SUCCESS = !ERROR
   ^~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant