Skip to content

Commit

Permalink
Merge branch 'SlimeVR:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanTabby authored May 23, 2024
2 parents 8a8fc79 + 3ae17ab commit 7ba7234
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions src/FSHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,9 @@ bool ensureDirectory(const char* directory) {
}
}

#ifdef ESP32
auto dir = LittleFS.open(directory);
auto dir = LittleFS.open(directory, "r");
auto isDirectory = dir.isDirectory();
dir.close();
#else
auto dir = LittleFS.openDir(directory);
auto isDirectory = dir.isDirectory();
#endif

if (!isDirectory) {
if (!LittleFS.remove(directory)) {
Expand Down
2 changes: 1 addition & 1 deletion src/sensors/SensorFusion.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ namespace SlimeVR
struct SensorVQFParams: VQFParams {
SensorVQFParams() : VQFParams() {
#ifndef VQF_NO_MOTION_BIAS_ESTIMATION
motionBiasEstEnabled = false;
motionBiasEstEnabled = true;
#endif
tauAcc = 2.0f;
restMinT = 2.0f;
Expand Down

0 comments on commit 7ba7234

Please sign in to comment.