Yield instead of sleep in case of no msg

This commit is contained in:
2020-05-04 18:06:13 +02:00
parent 16847f48b8
commit 11b5bde2dc
2 changed files with 12 additions and 11 deletions
+1
View File
@@ -73,6 +73,7 @@ void UdpRecvModule::receive_thread(const uint16_t udp_port)
if (!udp_receiver.receive(
&packet_buffer,
JUNGFRAU_BYTES_PER_PACKET)) {
this_thread::yield();
continue;
}