aboutsummaryrefslogtreecommitdiffstats
path: root/HAL-afb/HAL_MOST_UNICENS/ucs2-vol/src/device_container.cpp
diff options
context:
space:
mode:
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.cpp18
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);
+ }
+}