added volatile to variables susceptible to be changed in a ISR
(i.e. all member variables in this case...)
This commit is contained in:
parent
b5d2645340
commit
c22c02722c
1 changed files with 6 additions and 6 deletions
12
Statistic.h
12
Statistic.h
|
@ -38,12 +38,12 @@ public:
|
|||
|
||||
|
||||
protected:
|
||||
uint32_t _cnt;
|
||||
float _sum;
|
||||
float _min;
|
||||
float _max;
|
||||
bool _useStdDev;
|
||||
float _ssqdif; // sum of squares difference
|
||||
volatile uint32_t _cnt;
|
||||
volatile float _sum;
|
||||
volatile float _min;
|
||||
volatile float _max;
|
||||
volatile bool _useStdDev;
|
||||
volatile float _ssqdif; // sum of squares difference
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue