Compare commits
No commits in common. "e5593747cf30e88792947fb1c74c4efc69cf3539" and "c684ac560f2733b421813dfcf662abf11054a554" have entirely different histories.
e5593747cf
...
c684ac560f
2 changed files with 4 additions and 2 deletions
BIN
OtherDevices/.DS_Store
vendored
BIN
OtherDevices/.DS_Store
vendored
Binary file not shown.
|
|
@ -10,12 +10,14 @@ void AnalogSensorManometre::run(){
|
|||
int cpt = 0;
|
||||
while(1){
|
||||
if(ptrmem!=NULL){
|
||||
if(cpt == 5){
|
||||
if(cpt%5 == 0){
|
||||
*ptrmem = val - alea;
|
||||
cpt = 0;
|
||||
}
|
||||
}
|
||||
sleep(temps);
|
||||
cpt++;
|
||||
if(cpt == 10000){
|
||||
cpt = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue