sx1276 and adxrs610: C++11 incompatibility fixes

Signed-off-by: Eugene Bolshakov <pub@relvarsoft.com>

Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Eugene Bolshakov
2015-12-29 16:55:40 +03:00
committed by Mihai Tudor Panu
parent fad4f72357
commit ec75790516
2 changed files with 16 additions and 14 deletions

View File

@ -27,6 +27,15 @@
#include <string>
#include <mraa/aio.hpp>
// volts per degree / second (typ)
#define m_degreeCoeff 0.006
// volts per degree C (typ)
#define m_temperatureCoeff 0.009
// nominal temperature at m_centerVolts
#define m_temperatureNom 25.0
namespace upm {
/**
* @brief DFRobot ADXRS610 Gyro Beakout board
@ -159,14 +168,6 @@ namespace upm {
// aref / 2
float m_centerVolts;
// volts per degree / second (typ)
static const float m_degreeCoeff = 0.006;
// volts per degree C (typ)
static const float m_temperatureCoeff = 0.009;
// nominal temperature at m_centerVolts
static const float m_temperatureNom = 25.0;
};
}