Skip to content

Commit

Permalink
Removed volatile in Line.h
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcombriat committed Feb 19, 2024
1 parent ebca5ab commit 9e1c4ad
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Line.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ template <class T>
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
Expand Down Expand Up @@ -117,7 +117,7 @@ template <>
class Line <unsigned char>
{
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:
Expand Down Expand Up @@ -186,7 +186,7 @@ template <>
class Line <unsigned int>
{
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:
Expand Down Expand Up @@ -258,7 +258,7 @@ template <>
class Line <unsigned long>
{
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:
Expand Down

0 comments on commit 9e1c4ad

Please sign in to comment.