fixed some heavy pointermistakes

This commit is contained in:
2014-09-24 21:35:04 +02:00
parent b18e3f9943
commit ff954eced0
19 changed files with 751 additions and 56 deletions

View File

@@ -3,11 +3,15 @@
Ampel::Ampel()
{
this->running = 1;
}
void Ampel::setStop(){
this->running = 0;
}
void Ampel::run(){
int anzahl = 0;
while(1){
while(this->running){
anzahl++;
if(anzahl < 6){
usleep(800000);