mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
usbstream: Wait for enter rather than infinite loop/sleep.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "cameraserver.h"
|
||||
|
||||
#include <thread>
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
cs::USBCamera camera{"usbcam", 1};
|
||||
@@ -8,5 +8,5 @@ int main() {
|
||||
cs::MJPEGServer mjpegServer{"httpserver", 8080};
|
||||
mjpegServer.SetSource(camera);
|
||||
|
||||
for (;;) std::this_thread::sleep_for(std::chrono::seconds(1));
|
||||
getchar();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user