Make ISR variables volatile

This commit is contained in:
Matteo Albinola 2020-06-06 09:25:00 +02:00
parent dac14073c9
commit 8a67477cab
1 changed files with 2 additions and 2 deletions

View File

@ -58,8 +58,8 @@ float const windmeter_pi = 3.1415926535897932384626433; // Pi
float const windmeter_2pi = windmeter_pi * 2; float const windmeter_2pi = windmeter_pi * 2;
struct WINDMETER { struct WINDMETER {
uint32_t counter_time; volatile uint32_t counter_time;
unsigned long counter = 0; volatile unsigned long counter = 0;
//uint32_t speed_time; //uint32_t speed_time;
float speed = 0; float speed = 0;
float last_tele_speed = 0; float last_tele_speed = 0;