From 8a67477cab1ea54c4dadf4b0f38942d8e87cdc2f Mon Sep 17 00:00:00 2001 From: Matteo Albinola Date: Sat, 6 Jun 2020 09:25:00 +0200 Subject: [PATCH] Make ISR variables volatile --- tasmota/xsns_68_windmeter.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasmota/xsns_68_windmeter.ino b/tasmota/xsns_68_windmeter.ino index 3faa7ecb7..5487c898c 100644 --- a/tasmota/xsns_68_windmeter.ino +++ b/tasmota/xsns_68_windmeter.ino @@ -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;