diff options
author | Tobias Jahnke <tobias.jahnke@microchip.com> | 2018-10-15 14:22:58 +0200 |
---|---|---|
committer | Tobias Jahnke <tobias.jahnke@microchip.com> | 2018-12-18 13:01:13 +0100 |
commit | 2fac61e232dbdc5135345a07b19a66a5ebb2a015 (patch) | |
tree | 80d00b70d6adfa38a24829908f48fa8ad08df161 /plugin/ucs2-vol/src/device_container.cpp | |
parent | 3798969ce5771058d9526e2b3cbfec2c74e23fed (diff) |
4a-hal-unicens: prepare support for Fiberdyne Amp
Bug-AGL: SPEC-1758
- updated VolumeLib to support ctrl messages
- added master volume setup for amplifier node
- known issue: message transmission is commented out
due to wrap_json issue
Signed-off-by: Tobias Jahnke <tobias.jahnke@microchip.com>
Diffstat (limited to 'plugin/ucs2-vol/src/device_container.cpp')
-rw-r--r-- | plugin/ucs2-vol/src/device_container.cpp | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/plugin/ucs2-vol/src/device_container.cpp b/plugin/ucs2-vol/src/device_container.cpp index 0639c10..f804a42 100644 --- a/plugin/ucs2-vol/src/device_container.cpp +++ b/plugin/ucs2-vol/src/device_container.cpp @@ -119,18 +119,25 @@ void CDeviceContainer::Update() if (_values_pptr[_idx_processing]->RequiresUpdate()) { - if (_values_pptr[_idx_processing]->FireUpdateMessage(this->_init_ptr->writei2c_cb, - &OnI2cResult, - this)) + if (_values_pptr[_idx_processing]->GetType() == DEVICE_VAL_FIBERDYNE_MASTER) { - this->_tx_busy = true; - error = false; - break; + _values_pptr[_idx_processing]->FireControlMessage(this->_init_ptr->sendmsg_cb); } else { - error = true; - break; + if (_values_pptr[_idx_processing]->FireUpdateMessage(this->_init_ptr->writei2c_cb, + &OnI2cResult, + this)) + { + this->_tx_busy = true; + error = false; + break; + } + else + { + error = true; + break; + } } } } |