add is_system to analog sensor so internal sensors cannot be removed

This commit is contained in:
proddy
2025-11-08 16:30:40 +01:00
parent 3fd05c8eb7
commit dc838639b2
7 changed files with 62 additions and 43 deletions

View File

@@ -45,8 +45,9 @@ class AnalogCustomization {
std::string name;
double offset;
double factor;
uint8_t uom; // 0 is none
int8_t type; // -1 is for deletion
uint8_t uom; // 0 is none
int8_t type; // -1 is for deletion
bool is_system = false; // if true, the customization is a system customization
// used for removing from a list
bool operator==(const AnalogCustomization & a) const {