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