diff options
author | Tobias Jahnke <tjahnk@users.noreply.github.com> | 2017-08-21 17:01:54 +0200 |
---|---|---|
committer | Tobias Jahnke <tjahnk@users.noreply.github.com> | 2017-08-23 13:12:01 +0200 |
commit | c3d250fbc63c05d7f0ad5c4d95d725a16f3cece4 (patch) | |
tree | c900da6adf7299870ae67c1406d60eb7482cb653 /HAL-afb/HAL_MOST_UNICENS/ucs2-vol/src/device_container.cpp | |
parent | d0dae04c2ae6e4219e0ebac205dd05fa7e9427cf (diff) |
forwarding node availability to volume lib
Diffstat (limited to 'HAL-afb/HAL_MOST_UNICENS/ucs2-vol/src/device_container.cpp')
-rw-r--r-- | HAL-afb/HAL_MOST_UNICENS/ucs2-vol/src/device_container.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/HAL-afb/HAL_MOST_UNICENS/ucs2-vol/src/device_container.cpp b/HAL-afb/HAL_MOST_UNICENS/ucs2-vol/src/device_container.cpp index 40177fc..4c99c89 100644 --- a/HAL-afb/HAL_MOST_UNICENS/ucs2-vol/src/device_container.cpp +++ b/HAL-afb/HAL_MOST_UNICENS/ucs2-vol/src/device_container.cpp @@ -164,3 +164,21 @@ void CDeviceContainer::RequestService(uint16_t timeout) } } } + +void CDeviceContainer::ChangeNodeAvailable(uint16_t address, bool available) +{ + uint16_t idx; + + for (idx = 0U; idx < this->_values_sz; idx++) + { + if (this->_values_pptr[idx]->GetAddress() == address) + { + this->_values_pptr[idx]->SetAvailable(available); + } + } + + if (available) + { + RequestService(DEVCONT_TIME_RETRIGGER); + } +} |