mirror of https://github.com/g4klx/MMDVM.git
Get rid of annoying PI warning
This commit is contained in:
parent
03f18451f7
commit
807f01ba72
|
@ -28,6 +28,7 @@
|
||||||
#include "STM32Utils.h"
|
#include "STM32Utils.h"
|
||||||
#else
|
#else
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
|
#undef PI //Undefine PI to get rid of annoying warning as it is also defined in arm_math.h.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__SAM3X8E__) || defined(STM32F105xC)
|
#if defined(__SAM3X8E__) || defined(STM32F105xC)
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
#if !defined(RINGBUFFER_H)
|
#if !defined(RINGBUFFER_H)
|
||||||
#define RINGBUFFER_H
|
#define RINGBUFFER_H
|
||||||
|
|
||||||
|
|
||||||
#if defined(STM32F4XX)
|
#if defined(STM32F4XX)
|
||||||
#include "stm32f4xx.h"
|
#include "stm32f4xx.h"
|
||||||
#elif defined(STM32F7XX)
|
#elif defined(STM32F7XX)
|
||||||
|
@ -30,6 +29,7 @@
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#else
|
#else
|
||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
|
#undef PI
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__SAM3X8E__) || defined(STM32F105xC)
|
#if defined(__SAM3X8E__) || defined(STM32F105xC)
|
||||||
|
@ -56,7 +56,7 @@ public:
|
||||||
bool put(TDATATYPE item) volatile;
|
bool put(TDATATYPE item) volatile;
|
||||||
|
|
||||||
bool get(TDATATYPE& item);
|
bool get(TDATATYPE& item);
|
||||||
|
|
||||||
TDATATYPE peek() const;
|
TDATATYPE peek() const;
|
||||||
|
|
||||||
bool hasOverflowed();
|
bool hasOverflowed();
|
||||||
|
|
Loading…
Reference in New Issue