version 4.1.0

maybe fix hang on PIEthernet::interrupt()
replace piLetobe with piChangeEndian:
 * piChangeEndianBinary
 * piChangeBinary
 * piChangedBinary
PIDiagnostics::start now accept PISystemTime instead of number
add PITimer::start(PISystemTime, std::function<void()>) overload
This commit is contained in:
2024-08-28 11:56:36 +03:00
parent 33fc334077
commit e6c8714857
10 changed files with 113 additions and 66 deletions

View File

@@ -36,10 +36,7 @@ struct PIMemoryBlock {
public:
//! \~english Constructs data block
//! \~russian Создает блок данных
PIMemoryBlock(void * data_ = 0, int size_ = 0) {
d = data_;
s = size_;
}
PIMemoryBlock() {}
//! \~english Constructs data block
//! \~russian Создает блок данных
@@ -71,6 +68,10 @@ public:
//! \~russian Размер данных в байтах
int size() const { return s; }
//! \~english Returns if this block points to nothing
//! \~russian Возвращает пустой ли указатель на данные
bool isNull() const { return d; }
private:
void * d;
int s;