提交 889b0fd2 编写于 作者: 饶先宏's avatar 饶先宏

202105241850

上级 aa8fe0f7
......@@ -32,6 +32,7 @@
/*
* digitled.c
202105221536: rxh, initial version
202105241522:rxh, 增加Detector接口
*/
#include "stdlib.h"
......@@ -275,7 +276,7 @@ static int digitled_hdl4se_unit_ClkTick(HOBJECT object)
pobj->keypressed = keypressed;
for (i = 0; i < 7; i++) {
if (0 == objectCall3(pobj->fromunit[i], GetValue, 0, 32, temp)) {
if (0 == objectCall3(pobj->fromunit[i], GetValue, i, 32, temp)) {
objectCall1(temp, GetInt, &pobj->portdata[i]);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册