From f2748ac2bdc6ed16dfa7d9ec84cfd0aa3a56f261 Mon Sep 17 00:00:00 2001 From: strawmanbobi Date: Mon, 5 Jan 2026 13:07:13 +0800 Subject: [PATCH] fixed jni code accordingly --- .../src/jni/java/net/irext/decode/sdk/IRDecode.java | 3 +++ .../jni/java/net/irext/decode/sdk/bean/ACStatus.java | 12 +++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/decoder/src/jni/java/net/irext/decode/sdk/IRDecode.java b/decoder/src/jni/java/net/irext/decode/sdk/IRDecode.java index c125dc6..7ef8256 100644 --- a/decoder/src/jni/java/net/irext/decode/sdk/IRDecode.java +++ b/decoder/src/jni/java/net/irext/decode/sdk/IRDecode.java @@ -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; } } diff --git a/decoder/src/jni/java/net/irext/decode/sdk/bean/ACStatus.java b/decoder/src/jni/java/net/irext/decode/sdk/bean/ACStatus.java index 9756e59..4aa6080 100644 --- a/decoder/src/jni/java/net/irext/decode/sdk/bean/ACStatus.java +++ b/decoder/src/jni/java/net/irext/decode/sdk/bean/ACStatus.java @@ -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; + } }