Skip to content

Commit

Permalink
No delay
Browse files Browse the repository at this point in the history
  • Loading branch information
grindylow committed Apr 16, 2022
1 parent dd085e4 commit 8030acd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tools/rpi/discover/discover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ int main(int argc, char** argv)
dstaddrs.push_back(string("1Node"));
dstaddrs.push_back(string("2Node"));
dstaddrs.push_back(serno2shockburstaddrbytes(114174608145));
dstaddrs.push_back("\x45\x81\x60\x74\x01");
dstaddrs.push_back(serno2shockburstaddrbytes(114174608177));

// channels that we will scan
Expand All @@ -127,7 +128,7 @@ int main(int argc, char** argv)
cout << " - ";
}
cout << " " << flush;
delay(10);
//delay(10);
}
cout << endl;
}
Expand Down
3 changes: 2 additions & 1 deletion tools/rpi/discover/pretender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <sstream>
#include <time.h> // CLOCK_MONOTONIC_RAW, timespec, clock_gettime()
#include <RF24/RF24.h> // RF24, RF24_PA_LOW, delay()
#include <unistd.h> // usleep()

using namespace std;

Expand Down Expand Up @@ -45,7 +46,7 @@ void receiveForever(int ch, string myaddr)
while (true)
{
uint8_t pipe;
delay(500);
usleep(500000);
if (radio.failureDetected) {
cout << "!f! " << flush;
}
Expand Down

0 comments on commit 8030acd

Please sign in to comment.