Skip to content

Commit

Permalink
Initializing mask variable -- addresses issue 2
Browse files Browse the repository at this point in the history
  • Loading branch information
jimblom committed Jun 25, 2018
1 parent 8ce9837 commit 5aacad7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SparkFunMPU9250-DMP.cpp
Expand Up @@ -612,7 +612,7 @@ float MPU9250_DMP::calcQuat(long axis)

float MPU9250_DMP::qToFloat(long number, unsigned char q)
{
unsigned long mask;
unsigned long mask = 0;
for (int i=0; i<q; i++)
{
mask |= (1<<i);
Expand Down

0 comments on commit 5aacad7

Please sign in to comment.