Merge branch 'manometre' of https://git.etud.insa-toulouse.fr/bray/Projet_VictorAvecUnK
这个提交包含在:
当前提交
e5593747cf
共有 2 个文件被更改,包括 2 次插入 和 4 次删除
二进制
OtherDevices/.DS_Store
vendored
二进制
OtherDevices/.DS_Store
vendored
二进制文件未显示。
|
@ -10,14 +10,12 @@ void AnalogSensorManometre::run(){
|
|||
int cpt = 0;
|
||||
while(1){
|
||||
if(ptrmem!=NULL){
|
||||
if(cpt%5 == 0){
|
||||
if(cpt == 5){
|
||||
*ptrmem = val - alea;
|
||||
cpt = 0;
|
||||
}
|
||||
}
|
||||
sleep(temps);
|
||||
cpt++;
|
||||
if(cpt == 10000){
|
||||
cpt = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
正在加载…
在新工单中引用