Compare commits
2 commit
c684ac560f
...
e5593747cf
| 作者 | SHA1 | 提交日期 | |
|---|---|---|---|
| e5593747cf | |||
|
|
62f74ad36d |
共有 2 個文件被更改,包括 2 次插入 和 4 次删除
二進制
OtherDevices/.DS_Store
vendored
二進制
OtherDevices/.DS_Store
vendored
Binary file not shown.
|
|
@ -10,14 +10,12 @@ void AnalogSensorManometre::run(){
|
||||||
int cpt = 0;
|
int cpt = 0;
|
||||||
while(1){
|
while(1){
|
||||||
if(ptrmem!=NULL){
|
if(ptrmem!=NULL){
|
||||||
if(cpt%5 == 0){
|
if(cpt == 5){
|
||||||
*ptrmem = val - alea;
|
*ptrmem = val - alea;
|
||||||
|
cpt = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sleep(temps);
|
sleep(temps);
|
||||||
cpt++;
|
cpt++;
|
||||||
if(cpt == 10000){
|
|
||||||
cpt = 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
載入中…
Reference in a new issue