fix: 修复后端数码管无法正常读取/关闭的问题

This commit is contained in:
2025-08-15 15:25:37 +08:00
parent a00cc84e48
commit 774c9575d4
2 changed files with 9 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ public class SevenDigitalTubesCtrl
if (ret.Value.Options.Data == null || ret.Value.Options.Data.Length < 4)
return new(new Exception("Data length is too short"));
var data = Number.BytesToUInt32(ret.Value.Options.Data, 0, 4, true).Value;
var data = Number.BytesToUInt32(ret.Value.Options.Data, 0, 4).Value;
if ((data >> 8) != num)
{