diff --git a/energyplugin/energyplugin.pri b/energyplugin/energyplugin.pri index cc18c4f..e3f265d 100644 --- a/energyplugin/energyplugin.pri +++ b/energyplugin/energyplugin.pri @@ -5,7 +5,7 @@ INCLUDEPATH += $$PWD # [ETM] Activate ETM arbitrator — replaces SmartChargingManager::update() with EnergyArbitrator. # Propagé à tous les consommateurs du .pri (plugin + simulation + tests). # Uncommenter pour activer. Commité DÉSACTIVÉ jusqu'à preuve iso (3b-iv). -# DEFINES += ETM_ARBITRATOR +DEFINES += ETM_ARBITRATOR greaterThan(QT_MAJOR_VERSION, 5) { message("Building using Qt6 support") diff --git a/energyplugin/etm/energyarbitrator.cpp b/energyplugin/etm/energyarbitrator.cpp index 92b5771..857e1c5 100644 --- a/energyplugin/etm/energyarbitrator.cpp +++ b/energyplugin/etm/energyarbitrator.cpp @@ -53,6 +53,7 @@ RootMeter *EnergyArbitrator::registeredRootMeter() const void EnergyArbitrator::update(const QDateTime ¤tDateTime) { + qCDebug(dcNymeaEnergy()) << "Updating smart charging"; // Ordre IDENTIQUE à SmartChargingManager::update() — INTERDIT de réordonner. // SCM : 1.updateManual 2.prepareInfo 3.verifyOverload 4.verifyRecovery // 5.planSpot 6.planSurplus 7.adjustEv