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;
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;