fix issue where streamer cannot connect to idle device
This commit is contained in:
parent
31ab2fb132
commit
9b0682e2f3
|
@ -4,6 +4,7 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
int main(int argc, char** argv) {
|
int main(int argc, char** argv) {
|
||||||
std::string data;
|
std::string data;
|
||||||
|
@ -15,6 +16,7 @@ int main(int argc, char** argv) {
|
||||||
|
|
||||||
unsigned at = 0;
|
unsigned at = 0;
|
||||||
Device device(argv[1]);
|
Device device(argv[1]);
|
||||||
|
usleep(100000);
|
||||||
device.put(Device::Mode::e_serial);
|
device.put(Device::Mode::e_serial);
|
||||||
|
|
||||||
for(;;) {
|
for(;;) {
|
||||||
|
|
Loading…
Reference in New Issue