Get rid of annoying PI warning

This commit is contained in:
Geoffrey Merck 2020-05-10 07:00:58 +02:00
parent 03f18451f7
commit 807f01ba72
2 changed files with 3 additions and 2 deletions

View File

@ -28,6 +28,7 @@
#include "STM32Utils.h"
#else
#include <Arduino.h>
#undef PI //Undefine PI to get rid of annoying warning as it is also defined in arm_math.h.
#endif
#if defined(__SAM3X8E__) || defined(STM32F105xC)

View File

@ -20,7 +20,6 @@
#if !defined(RINGBUFFER_H)
#define RINGBUFFER_H
#if defined(STM32F4XX)
#include "stm32f4xx.h"
#elif defined(STM32F7XX)
@ -30,6 +29,7 @@
#include <cstddef>
#else
#include <Arduino.h>
#undef PI
#endif
#if defined(__SAM3X8E__) || defined(STM32F105xC)
@ -56,7 +56,7 @@ public:
bool put(TDATATYPE item) volatile;
bool get(TDATATYPE& item);
TDATATYPE peek() const;
bool hasOverflowed();