fixes for usb-support
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
#include "countdown.h"
|
||||
#include "unistd.h"
|
||||
Countdown::Countdown()
|
||||
{
|
||||
Countdown::Countdown() {
|
||||
this->running = 1;
|
||||
}
|
||||
void Countdown::setStop(){
|
||||
void Countdown::setStop() {
|
||||
this->running = 0;
|
||||
}
|
||||
|
||||
void Countdown::run(){
|
||||
while(this->running){
|
||||
void Countdown::run() {
|
||||
while (this->running) {
|
||||
sleep(1);
|
||||
emit CountdownUpdate();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user