- corrected forcevnet bug
This commit is contained in:
1 parent
64ee52a8ab
commit
fcfaf065ea
1 file changed
+4
-2
+4
-2
@@ -332,17 +332,19 @@ void Pws2mqtt::parseData(QList<std::pair<QString, QString>> queryList)
|
||||
|
||||
for (i=0; i < forceVent.size();i++)
|
||||
{
|
||||
if (propertiesValue[name] <= forceVent[i][0].toDouble())
|
||||
if (propertiesValue[name] < forceVent[i][0].toUInt())
|
||||
{
|
||||
i -= 1;
|
||||
msg = forceVent[i][1].toString();
|
||||
windPriority = forceVent[i][2].toUInt();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
propertyList[name] = "- Vent - " + msg + " : " + QByteArray::number(propertiesValue[name]) + " Km/h\n";
|
||||
propertiesValue["forcevent"] = i;
|
||||
|
||||
if (i >= 5)
|
||||
if (i >= 7)
|
||||
{
|
||||
if (announced[name] != windPriority)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user