fix: 修复i2c发送数据包错误的问题

This commit is contained in:
2025-07-10 18:42:33 +08:00
parent 540f5c788d
commit c6c3f1cc41
3 changed files with 15 additions and 4 deletions

View File

@@ -269,6 +269,9 @@ namespace WebProtocol
if (bodyData.Length > 256 * (32 / 8))
throw new Exception("The data of SendDataPackage can't over 256 * 32bits");
if (bodyData.Length % 4 != 0)
throw new Exception("The data of SendDataPackage should be divided by 4");
this.bodyData = bodyData;
_ = _reserved;