Merge branch 'wellenvogel:master' into master

This commit is contained in:
norbert-walter 2022-03-13 14:22:01 +01:00 committed by GitHub
commit e293fbfe6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -15,6 +15,7 @@ class GwApi{
public:
double value=0;
bool valid=false;
int source=-1;
bool changed=false; //will be set by getBoatDataValues
BoatValue(){}
BoatValue(const String &n):name(n){

View File

@ -286,6 +286,11 @@ public:
double newValue=item->getDoubleValue();
if (newValue != list[i]->value) list[i]->changed=true;
list[i]->value=newValue;
int newSource=item->getLastSource();
if (newSource != list[i]->source){
list[i]->source=newSource;
list[i]->changed=true;
}
}
list[i]->setFormat(item->getFormat());
}