fix radioreceiver
This commit is contained in:
parent
f62e7d9e01
commit
e1fae133a3
@ -86,7 +86,9 @@ void Radio433Receiver::run()
|
|||||||
//timeout
|
//timeout
|
||||||
}
|
}
|
||||||
if (fdset[1].revents & POLLPRI){
|
if (fdset[1].revents & POLLPRI){
|
||||||
read(fdset[1].fd, buf, 1);
|
if(read(fdset[1].fd, buf, 1) != 1){
|
||||||
|
qWarning() << "ERROR: could not read GPIO";
|
||||||
|
}
|
||||||
int currentTime = micros();
|
int currentTime = micros();
|
||||||
int duration = currentTime - lastTime;
|
int duration = currentTime - lastTime;
|
||||||
lastTime = currentTime;
|
lastTime = currentTime;
|
||||||
|
|||||||
Reference in New Issue
Block a user