From 81cbf905ba40be86eb1759405ad0deeb9a22cee4 Mon Sep 17 00:00:00 2001 From: peri4 Date: Tue, 20 Dec 2022 16:10:38 +0300 Subject: [PATCH] PIValueTree add attributes --- libs/main/io_devices/pibinarylog.cpp | 2 +- libs/main/types/pivaluetree.cpp | 2 ++ libs/main/types/pivaluetree.h | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/main/io_devices/pibinarylog.cpp b/libs/main/io_devices/pibinarylog.cpp index 4198e18e..aba778c9 100644 --- a/libs/main/io_devices/pibinarylog.cpp +++ b/libs/main/io_devices/pibinarylog.cpp @@ -189,7 +189,7 @@ bool PIBinaryLog::threadedRead(const uchar * readed, ssize_t size) { piMSleep(100); // TODO: rewrite with condvar return false; } else if (pause_time > PISystemTime()) { - startlogtime += pause_time; + // startlogtime += pause_time; pause_time = PISystemTime(); } pausemutex.unlock(); diff --git a/libs/main/types/pivaluetree.cpp b/libs/main/types/pivaluetree.cpp index d08c12be..49e5ce8b 100644 --- a/libs/main/types/pivaluetree.cpp +++ b/libs/main/types/pivaluetree.cpp @@ -51,6 +51,8 @@ const char PIValueTree::Attribute::style [] = "style" ; const char PIValueTree::Attribute::filter [] = "filter" ; const char PIValueTree::Attribute::absolutePath [] = "absolutePath" ; const char PIValueTree::Attribute::onlyExisting [] = "onlyExisting" ; +const char PIValueTree::Attribute::widgetType [] = "widgetType" ; +const char PIValueTree::Attribute::expression [] = "expression" ; // clang-format on diff --git a/libs/main/types/pivaluetree.h b/libs/main/types/pivaluetree.h index 53ec647c..94e1264a 100644 --- a/libs/main/types/pivaluetree.h +++ b/libs/main/types/pivaluetree.h @@ -61,6 +61,8 @@ public: static const char filter []; static const char absolutePath []; static const char onlyExisting []; + static const char widgetType []; + static const char expression []; //static constexpr char attribute[] = ""; // clang-format on };