From 16bc3dabd6b039ff679d86fa5a076c952af6ed51 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: Thu, 2 May 2024 04:46:34 +0800 Subject: [PATCH] =?UTF-8?q?1078-=E4=BF=AE=E6=94=B9=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E4=B8=8B=E5=8F=91=E6=A0=87=E8=AE=B0=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../genersoft/iot/vmp/jt1078/bean/JTTextSign.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/jt1078/bean/JTTextSign.java b/src/main/java/com/genersoft/iot/vmp/jt1078/bean/JTTextSign.java index ca3dfac6a..577c78430 100644 --- a/src/main/java/com/genersoft/iot/vmp/jt1078/bean/JTTextSign.java +++ b/src/main/java/com/genersoft/iot/vmp/jt1078/bean/JTTextSign.java @@ -8,7 +8,7 @@ import io.swagger.v3.oas.annotations.media.Schema; @Schema(description = "文本信息标志") public class JTTextSign { - @Schema(description = "01服务,2紧急,3通知") + @Schema(description = "1紧急,2服务,3通知") private int type; @Schema(description = "1终端显示器显示") @@ -21,18 +21,18 @@ public class JTTextSign { private boolean source; public byte encode(){ - byte bytes = 0; - bytes |= (byte) type; + byte byteSign = 0; + byteSign |= (byte) type; if (terminalDisplay) { - bytes |= (0x1 << 2); + byteSign |= (0x1 << 2); } if (tts) { - bytes |= (0x1 << 3); + byteSign |= (0x1 << 3); } if (source) { - bytes |= (0x1 << 5); + byteSign |= (0x1 << 5); } - return bytes; + return byteSign; } public int getType() {