piserial should be fixed

This commit is contained in:
2022-10-24 10:55:25 +03:00
parent ea0df21726
commit 609ff8e9c8
4 changed files with 4 additions and 18 deletions

View File

@@ -528,15 +528,15 @@ protected:
virtual void threadedReadBufferSizeChanged() {;}
static PIIODevice * newDeviceByPrefix(const char * prefix);
bool blockingReadFlag() const;
void setBlockingReadFlag(bool yes);
bool isThreadedReadStopping() const {return read_thread.isStopping();}
DeviceMode mode_;
DeviceOptions options_;
ReadRetFunc func_read = nullptr;
bool opened_ = false;
void * ret_data_ = nullptr;
std::atomic_bool reading_now;
private:
EVENT_HANDLER(void, read_func);
@@ -554,7 +554,6 @@ private:
PIQueue<PIPair<PIByteArray, ullong> > write_queue;
ullong tri = 0;
uint threaded_read_buffer_size, reopen_timeout = 1000;
std::atomic_bool reading_now;
bool reopen_enabled = true;
static PIMutex nfp_mutex;