modif manometre, toujours decrescendo
This commit is contained in:
parent
4ab22f4df3
commit
62f74ad36d
2 changed files with 2 additions and 4 deletions
BIN
OtherDevices/.DS_Store
vendored
BIN
OtherDevices/.DS_Store
vendored
Binary file not shown.
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue