mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-12 00:27:50 +08:00
[1078] 修复终端参数保存
This commit is contained in:
parent
9b0d091e4e
commit
9d0678f765
@ -126,7 +126,7 @@ public class JTAlarmSign implements JTDeviceSubConfig {
|
||||
public ByteBuf encode() {
|
||||
// 限定容量 避免影响后续占位
|
||||
ByteBuf byteBuf = Unpooled.buffer();
|
||||
long alarmSignValue = 0;
|
||||
int alarmSignValue = 0;
|
||||
if (urgent) {
|
||||
alarmSignValue = alarmSignValue | 1;
|
||||
}
|
||||
@ -220,7 +220,7 @@ public class JTAlarmSign implements JTDeviceSubConfig {
|
||||
if (warningRollover) {
|
||||
alarmSignValue = alarmSignValue | 1 << 30;
|
||||
}
|
||||
byteBuf.writeLong(alarmSignValue);
|
||||
byteBuf.writeInt(alarmSignValue);
|
||||
return byteBuf;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user