mirror of https://github.com/arendst/Tasmota.git
Make ISR variables volatile
This commit is contained in:
parent
dac14073c9
commit
8a67477cab
|
@ -58,8 +58,8 @@ float const windmeter_pi = 3.1415926535897932384626433; // Pi
|
|||
float const windmeter_2pi = windmeter_pi * 2;
|
||||
|
||||
struct WINDMETER {
|
||||
uint32_t counter_time;
|
||||
unsigned long counter = 0;
|
||||
volatile uint32_t counter_time;
|
||||
volatile unsigned long counter = 0;
|
||||
//uint32_t speed_time;
|
||||
float speed = 0;
|
||||
float last_tele_speed = 0;
|
||||
|
|
Loading…
Reference in New Issue