debug
This commit is contained in:
2
main.cpp
2
main.cpp
@@ -61,7 +61,7 @@ int main(int argc, char *argv[])
|
|||||||
pws2mqtt = new Pws2mqtt;
|
pws2mqtt = new Pws2mqtt;
|
||||||
|
|
||||||
pws2mqtt->listeningHttp();
|
pws2mqtt->listeningHttp();
|
||||||
notify ("Program started \n", "default");
|
notify (QString("Program started").toUtf8(), "default");
|
||||||
|
|
||||||
a.exec();
|
a.exec();
|
||||||
|
|
||||||
|
|||||||
@@ -517,7 +517,7 @@ QString pressureVariation(double currentPressure, quint8 &priority)
|
|||||||
// Calcul de la variation sur 3h si on a assez de mesures
|
// Calcul de la variation sur 3h si on a assez de mesures
|
||||||
if (historiquePressions.size() == NB_MESURES_3H)
|
if (historiquePressions.size() == NB_MESURES_3H)
|
||||||
{
|
{
|
||||||
double pressionInitiale = historiquePressions.front();) * 30
|
double pressionInitiale = historiquePressions.front();
|
||||||
double pressionFinale = historiquePressions.back();
|
double pressionFinale = historiquePressions.back();
|
||||||
double variation = pressionFinale - pressionInitiale;
|
double variation = pressionFinale - pressionInitiale;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user