From 38cb44717ec2a9198580c2302c90860749b3c81b Mon Sep 17 00:00:00 2001 From: rusefillc Date: Sat, 26 Feb 2022 22:58:51 -0500 Subject: [PATCH] volatile increment warning --- firmware/util/containers/cyclic_buffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/util/containers/cyclic_buffer.h b/firmware/util/containers/cyclic_buffer.h index 0ba9f05b33..2f8fe35029 100644 --- a/firmware/util/containers/cyclic_buffer.h +++ b/firmware/util/containers/cyclic_buffer.h @@ -69,7 +69,7 @@ void cyclic_buffer::add(T value) { } currentIndex = idx; - count += 1; + count = count + 1; } template