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:
|
protected:
|
||||||
uint32_t _cnt;
|
volatile uint32_t _cnt;
|
||||||
float _sum;
|
volatile float _sum;
|
||||||
float _min;
|
volatile float _min;
|
||||||
float _max;
|
volatile float _max;
|
||||||
bool _useStdDev;
|
volatile bool _useStdDev;
|
||||||
float _ssqdif; // sum of squares difference
|
volatile float _ssqdif; // sum of squares difference
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue