修改储物箱锁状态判断(0关闭1开启2等待按下按钮后开锁)
This commit is contained in:
parent
f1e77d2e84
commit
cad28e30f1
|
@ -131,7 +131,7 @@ namespace DM_Weight.Port
|
||||||
byte[] result = await OpenStorage();
|
byte[] result = await OpenStorage();
|
||||||
|
|
||||||
int[] r = result.Select(it => Convert.ToInt32(it)).ToArray();
|
int[] r = result.Select(it => Convert.ToInt32(it)).ToArray();
|
||||||
if (r[4] == 0)
|
if (r[4] != 0)
|
||||||
{
|
{
|
||||||
logger.Info($"储物箱使能成功");
|
logger.Info($"储物箱使能成功");
|
||||||
// 查询锁状态
|
// 查询锁状态
|
||||||
|
|
Loading…
Reference in New Issue