修改储物箱锁状态判断(0关闭1开启2等待按下按钮后开锁)

This commit is contained in:
maqiao 2023-11-14 15:34:55 +08:00
parent f1e77d2e84
commit cad28e30f1
1 changed files with 1 additions and 1 deletions

View File

@ -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($"储物箱使能成功");
// 查询锁状态