Skip to content

Commit

Permalink
Merge pull request #699 from Firebie/issue696
Browse files Browse the repository at this point in the history
Delay accelerometer for 2 seconds - fix for #696
  • Loading branch information
Ralim committed Sep 15, 2020
2 parents 7e2c888 + 9edb7d4 commit aa7a035
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions workspace/TS100/Core/Threads/MOVThread.cpp
Expand Up @@ -45,6 +45,12 @@ void startMOVTask(void const *argument __unused) {
postRToSInit();
OLED::setRotation(systemSettings.OrientationMode & 1);

if ((PCBVersion == 1
|| PCBVersion == 2)
&& (systemSettings.autoStartMode == 2
|| systemSettings.autoStartMode == 3))
osDelay(2000);

lastMovementTime = 0;
int16_t datax[MOVFilter] = { 0 };
int16_t datay[MOVFilter] = { 0 };
Expand Down

0 comments on commit aa7a035

Please sign in to comment.