diff --git a/modules/EnergyNode/energy_grid/energyImpl.cpp b/modules/EnergyNode/energy_grid/energyImpl.cpp index f7afcc99e..f7ed1cff1 100644 --- a/modules/EnergyNode/energy_grid/energyImpl.cpp +++ b/modules/EnergyNode/energy_grid/energyImpl.cpp @@ -42,7 +42,7 @@ void energyImpl::init() { }); } - if (!mod->r_price_information.empty()) { + if (!mod->r_powermeter.empty()) { mod->r_powermeter[0]->subscribe_powermeter([this](types::powermeter::Powermeter p) { EVLOG_debug << "Incoming powermeter readings: " << p; std::scoped_lock lock(energy_mutex);