Skip to content

Commit

Permalink
Merge pull request #3 from s-moa/patch-3
Browse files Browse the repository at this point in the history
重力加速度で歩数計の初期値が1になるのを修正
  • Loading branch information
toshi-pono authored Nov 22, 2021
2 parents 93d3906 + 32bc314 commit a552589
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions poketch/pedometer.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Pedometer
const float LOW_PATH = 0.1F;

float _threshold = 1.10F;
float _beforeA = 0.0F;
float _beforeA = 1.0F;
bool _isUnder = false;
float _maxA = 0.0F;
float _minA = 100.0F;
Expand Down Expand Up @@ -143,4 +143,4 @@ void Pedometer::clear()
_btn_image.deleteSprite();
}

#endif // _DG_PEDOMETER_
#endif // _DG_PEDOMETER_

0 comments on commit a552589

Please sign in to comment.