From c3d250fbc63c05d7f0ad5c4d95d725a16f3cece4 Mon Sep 17 00:00:00 2001 From: Tobias Jahnke Date: Mon, 21 Aug 2017 17:01:54 +0200 Subject: forwarding node availability to volume lib --- .../HAL_MOST_UNICENS/ucs2-vol/src/device_container.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'HAL-afb/HAL_MOST_UNICENS/ucs2-vol/src/device_container.cpp') 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); + } +} -- cgit 1.2.3-korg