From 9b0682e2f3e54f6f938da4df0cf4232252c585e3 Mon Sep 17 00:00:00 2001 From: Jay Robson Date: Mon, 26 Aug 2024 13:31:14 +1000 Subject: [PATCH] fix issue where streamer cannot connect to idle device --- src/streamer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/streamer.cpp b/src/streamer.cpp index 36be3d9..21b2bb3 100644 --- a/src/streamer.cpp +++ b/src/streamer.cpp @@ -4,6 +4,7 @@ #include #include #include +#include int main(int argc, char** argv) { std::string data; @@ -15,6 +16,7 @@ int main(int argc, char** argv) { unsigned at = 0; Device device(argv[1]); + usleep(100000); device.put(Device::Mode::e_serial); for(;;) {