Skip to content

Commit 31c0ea4

Browse files
author
☃ Elliot Shepherd
authored
Merge pull request #33 from computerlyrik/master
Decrease Example from 100% CPU Usage
2 parents 1b4f5bc + 814728a commit 31c0ea4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RPi_utils/RFSniffer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "../rc-switch/RCSwitch.h"
1212
#include <stdlib.h>
1313
#include <stdio.h>
14+
#include <unistd.h>
1415

1516

1617
RCSwitch mySwitch;
@@ -52,9 +53,8 @@ int main(int argc, char *argv[]) {
5253

5354
fflush(stdout);
5455
mySwitch.resetAvailable();
55-
5656
}
57-
57+
usleep(100);
5858

5959
}
6060

0 commit comments

Comments
 (0)