nlgpio16: 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 2016-01-07 14:24:56 +03:00 committed by Mihai Tudor Panu
parent ec75790516
commit 4a1b4f1dd4

View File

@ -38,6 +38,12 @@
#define NLGPIO16_DEFAULT_UART_DEV "/dev/ttyACM0" #define NLGPIO16_DEFAULT_UART_DEV "/dev/ttyACM0"
// ADC analog ref voltage is 3.3v
#define ADC_AREF 3.3
// 10-bit precision (0-1023)
#define ADC_PRECISION 10
namespace upm { namespace upm {
/** /**
* @brief NLGPIO16 module * @brief NLGPIO16 module
@ -82,11 +88,6 @@ namespace upm {
class NLGPIO16 { class NLGPIO16 {
public: public:
// ADC analog ref voltage is 3.3v
static const float ADC_AREF = 3.3;
// 10-bit precision (0-1023)
static const int ADC_PRECISION = 10;
/** /**
* NLGPIO16 object constructor * NLGPIO16 object constructor
* *