fix: 修复i2c发送数据包错误的问题
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user