Skip to content

Commit

Permalink
fix wakeup threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddddddddy committed May 24, 2023
1 parent 9c4dae9 commit e40d5af
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions SolderingPen_ESP32S2/SolderingPen_ESP32S2.ino
Original file line number Diff line number Diff line change
@@ -409,9 +409,9 @@ void SENSORCheck() {
Serial.println("进入工作状态!");
}*/
// #if defined(LIS)
if (abs(accel.getX() - gx) > WAKEUP_THRESHOLD ||
abs(accel.getY() - gy) > WAKEUP_THRESHOLD ||
abs(accel.getZ() - gz) > WAKEUP_THRESHOLD) {
if (abs(accel.getX() - gx) > WAKEUPthreshold ||
abs(accel.getY() - gy) > WAKEUPthreshold ||
abs(accel.getZ() - gz) > WAKEUPthreshold) {
gx = accel.getX();
gy = accel.getY();
gz = accel.getZ();
2 changes: 1 addition & 1 deletion SolderingPen_ESP32S2/config.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Firmware version
#define VERSION "v4.3.0" //20230524
#define VERSION "v4.3.1" //20230524
#define VERSION_NUM 422

// Type of MOSFET

0 comments on commit e40d5af

Please sign in to comment.