From 9e1c4adb99b8adce469fd8482009e0429c5b8a95 Mon Sep 17 00:00:00 2001 From: tomcombriat Date: Mon, 19 Feb 2024 23:32:26 +0100 Subject: [PATCH] Removed volatile in Line.h --- Line.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Line.h b/Line.h index d0c632756..34ae20856 100644 --- a/Line.h +++ b/Line.h @@ -42,8 +42,8 @@ template class Line { private: - volatile T current_value; // volatile because it could be set in control interrupt and updated in audio - volatile T step_size; + T current_value; + T step_size; public: /** Constructor. Use the template parameter to set the type of numbers you @@ -117,7 +117,7 @@ template <> class Line { private: - volatile unsigned char current_value; // volatile because it could be set in control interrupt and updated in audio + unsigned char current_value; char step_size; public: @@ -186,7 +186,7 @@ template <> class Line { private: - volatile unsigned int current_value; // volatile because it could be set in control interrupt and updated in audio + unsigned int current_value; int step_size; public: @@ -258,7 +258,7 @@ template <> class Line { private: - volatile unsigned long current_value; // volatile because it could be set in control interrupt and updated in audio + unsigned long current_value; long step_size; public: