add tests/adc_dev_test.cpp

This commit is contained in:
Timur A. Fatkhullin
2024-12-14 01:35:58 +03:00
parent 776206c9bb
commit 2cfde5a685
3 changed files with 136 additions and 2 deletions

View File

@@ -155,8 +155,8 @@ protected:
CmdIdDeserialT&& cmd_id_deser_func = {})
: _id(id)
{
_get_attr = [dev_ptr, wrapper = traits::adc_pf_wrapper(std::forward<AttrIdDeserialT>(attr_id_deser_func)),
this](const auto& attr_name) mutable {
_get_attr = [dev_ptr, wrapper = traits::adc_pf_wrapper(std::forward<AttrIdDeserialT>(attr_id_deser_func))](
const auto& attr_name) mutable {
auto attr_id = std::get<0>(wrapper)(attr_name);
auto& attr = (*dev_ptr)[attr_id];
// auto& attr = dev_ptr->operator[](attr_id);