fixed jni code accordingly

This commit is contained in:
strawmanbobi
2026-01-05 13:07:13 +08:00
parent 9b5fae523a
commit f2748ac2bd
2 changed files with 14 additions and 1 deletions

View File

@@ -147,6 +147,9 @@ public class IRDecode {
acStatus.getAcWindDir() > Constants.ACSwing.SWING_OFF.getValue()) {
return false;
}
if (acStatus.getChangeWindDir() != 0 && acStatus.getChangeWindDir() != 1) {
return false;
}
return true;
}
}

View File

@@ -24,6 +24,7 @@ public class ACStatus {
private int acDisplay;
private int acSleep;
private int acTimer;
private int changeWindDir;
public ACStatus() {
this.acPower = Constants.ACPower.POWER_OFF.getValue();
@@ -34,10 +35,11 @@ public class ACStatus {
this.acTimer = 0;
this.acDisplay = 0;
this.acSleep = 0;
this.changeWindDir = 0;
}
public ACStatus(int acPower, int acMode, int acTemp, int acWindSpeed, int acWindDir,
int acDisplay, int acSleep, int acTimer) {
int acDisplay, int acSleep, int acTimer, int changeWindDir) {
this.acPower = acPower;
this.acTemp = acTemp;
this.acMode = acMode;
@@ -46,6 +48,7 @@ public class ACStatus {
this.acDisplay = acDisplay;
this.acSleep = acSleep;
this.acTimer = acTimer;
this.changeWindDir = changeWindDir;
}
public int getAcPower() {
@@ -112,4 +115,11 @@ public class ACStatus {
this.acTimer = acTimer;
}
public int getChangeWindDir() {
return changeWindDir;
}
public void setChangeWindDir(int changeWindDir) {
this.changeWindDir = changeWindDir;
}
}