summaryrefslogtreecommitdiff
path: root/backend/genesys/register.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2020-08-24 18:44:51 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2020-08-24 18:44:51 +0200
commitad38bc6ecb80ddeb562841b33258dd53659b1da6 (patch)
treee02e9c3ff760554fd87f70df0e18b88594091a48 /backend/genesys/register.h
parent9c23ed018d72eed2554f4f9cff1ae6e6bb0cd479 (diff)
New upstream version 1.0.31upstream/1.0.31
Diffstat (limited to 'backend/genesys/register.h')
-rw-r--r--backend/genesys/register.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/backend/genesys/register.h b/backend/genesys/register.h
index bbc7ec8..51aab90 100644
--- a/backend/genesys/register.h
+++ b/backend/genesys/register.h
@@ -44,6 +44,7 @@
#ifndef BACKEND_GENESYS_REGISTER_H
#define BACKEND_GENESYS_REGISTER_H
+#include "enums.h"
#include "utilities.h"
#include <algorithm>
@@ -76,7 +77,7 @@ struct GenesysRegisterSetState
bool is_lamp_on = false;
bool is_xpa_on = false;
bool is_motor_on = false;
- bool is_xpa_motor_on = false;
+ MotorMode motor_mode = MotorMode::PRIMARY;
};
template<class Value>
@@ -414,6 +415,11 @@ public:
}
}
+ bool has_reg(AddressType address) const
+ {
+ return find_reg_index(address) != -1;
+ }
+
SettingType& find_reg(AddressType address)
{
int i = find_reg_index(address);