Browse Source

No delay

pull/4/head
Martin Grill 3 years ago
parent
commit
8030acd283
  1. 3
      tools/rpi/discover/discover.cpp
  2. 3
      tools/rpi/discover/pretender.cpp

3
tools/rpi/discover/discover.cpp

@ -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
@ -127,7 +128,7 @@ int main(int argc, char** argv)
cout << " - ";
}
cout << " " << flush;
delay(10);
//delay(10);
}
cout << endl;
}

3
tools/rpi/discover/pretender.cpp

@ -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;
@ -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;
}

Loading…
Cancel
Save