version 5.5.0

add PIIODevice::threadedReadTimeout
This commit is contained in:
2025-09-29 18:48:20 +03:00
parent 8d6ae976a3
commit db954ffdaa
3 changed files with 7 additions and 3 deletions

View File

@@ -390,7 +390,7 @@ void PIIODevice::read_func() {
ssize_t readed_ = read(buffer_tr.data(), buffer_tr.size_s());
if (read_thread.isStopping()) return;
if (readed_ <= 0) {
piMSleep(10);
piMSleep(threaded_read_timeout_ms);
// cout << readed_ << ", " << errno << ", " << errorString() << endl;
return;
}