Skip to content

Commit

Permalink
Fix compilation with -std=gnu++11
Browse files Browse the repository at this point in the history
  • Loading branch information
tfry-git committed Dec 11, 2017
1 parent 1cc4f79 commit 8d1b733
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion STM32F1/libraries/STM32ADC/src/STM32ADC.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,11 @@ class STM32ADC{
voidFuncPtr _DMA_int;
voidFuncPtr _ADC_int;
voidFuncPtr _AWD_int;
#if __cplusplus >= 201103L
static constexpr float _AverageSlope = 4.3; // mV/oC //4.0 to 4.6
static constexpr float _V25 = 1.43; //Volts //1.34 - 1.52
#else
static const float _AverageSlope = 4.3; // mV/oC //4.0 to 4.6
static const float _V25 = 1.43; //Volts //1.34 - 1.52

#endif
};

0 comments on commit 8d1b733

Please sign in to comment.