modified pluviosite priority

This commit is contained in:
DTux committed 2026-05-11 16:24:48 +02:00
1 parent 2d3ab95e83
commit de2a750b15
1 file changed
+5 -2
+5 -2
View File
@@ -365,13 +365,16 @@ void Pws2mqtt::parseData(QList<std::pair<QString, QString>> queryList)
}else if (name == "rainin") }else if (name == "rainin")
{ {
static double ecart; static double ecart;
quint8 raininPriority = 1; quint8 raininPriority;
propertyValue = round(pair.second.toFloat()*100)/100; propertyValue = round(pair.second.toFloat()*100)/100;
if (propertyValue == 0) if (propertyValue == 0)
{ {
ecart = 0.0001; raininPriority = 1;
ecart = 0.0001;
}else }else
{ {
raininPriority = 3;
ecart = 0.01; ecart = 0.01;
} }
debug (DEBUGMACRO, name + " : " + QByteArray::number(propertyValue), DEBUG); debug (DEBUGMACRO, name + " : " + QByteArray::number(propertyValue), DEBUG);