diff --git a/backend/genesys/device.cpp b/backend/genesys/device.cpp index fcfc38b92..a15269e8b 100644 --- a/backend/genesys/device.cpp +++ b/backend/genesys/device.cpp @@ -272,6 +272,15 @@ std::ostream& operator<<(std::ostream& out, const Genesys_Device& dev) return out; } +void apply_reg_settings_to_device_write_only(Genesys_Device& dev, + const GenesysRegisterSettingSet& regs) +{ + GenesysRegisterSettingSet backup; + for (const auto& reg : regs) { + dev.interface->write_register(reg.address, reg.value); + } +} + void apply_reg_settings_to_device(Genesys_Device& dev, const GenesysRegisterSettingSet& regs) { apply_reg_settings_to_device_with_backup(dev, regs); diff --git a/backend/genesys/device.h b/backend/genesys/device.h index 182c6ddf4..0593636c5 100644 --- a/backend/genesys/device.h +++ b/backend/genesys/device.h @@ -365,6 +365,8 @@ std::ostream& operator<<(std::ostream& out, const Genesys_Device& dev); void apply_reg_settings_to_device(Genesys_Device& dev, const GenesysRegisterSettingSet& regs); +void apply_reg_settings_to_device_write_only(Genesys_Device& dev, + const GenesysRegisterSettingSet& regs); GenesysRegisterSettingSet apply_reg_settings_to_device_with_backup(Genesys_Device& dev, const GenesysRegisterSettingSet& regs);