Vertaa committeja
2 commits
c684ac560f
...
e5593747cf
Tekijä | SHA1 | Päivämäärä | |
---|---|---|---|
e5593747cf | |||
|
62f74ad36d |
2 muutettua tiedostoa jossa 2 lisäystä ja 4 poistoa
BIN
OtherDevices/.DS_Store
vendored
BIN
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ladataan…
Viittaa uudesa ongelmassa