From 0b0bcf1dfb28c058800d05406e6fd4cc6756061d Mon Sep 17 00:00:00 2001 From: Bernhard Kirchen Date: Thu, 29 Jun 2023 21:52:18 +0200 Subject: [PATCH] fix typo: getLastRequestedPowe*w*rLimit() --- include/PowerLimiter.h | 2 +- src/PowerLimiter.cpp | 2 +- src/WebApi_ws_vedirect_live.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/PowerLimiter.h b/include/PowerLimiter.h index 6846d0864..7eb78fa87 100644 --- a/include/PowerLimiter.h +++ b/include/PowerLimiter.h @@ -33,7 +33,7 @@ class PowerLimiterClass { void init(); void loop(); uint8_t getPowerLimiterState(); - int32_t getLastRequestedPowewrLimit(); + int32_t getLastRequestedPowerLimit(); void setMode(uint8_t mode); bool getMode(); void calcNextInverterRestart(); diff --git a/src/PowerLimiter.cpp b/src/PowerLimiter.cpp index cbaf80dcd..93bd01f3a 100644 --- a/src/PowerLimiter.cpp +++ b/src/PowerLimiter.cpp @@ -199,7 +199,7 @@ uint8_t PowerLimiterClass::getPowerLimiterState() { return PL_UI_STATE_INACTIVE; } -int32_t PowerLimiterClass::getLastRequestedPowewrLimit() { +int32_t PowerLimiterClass::getLastRequestedPowerLimit() { return _lastRequestedPowerLimit; } diff --git a/src/WebApi_ws_vedirect_live.cpp b/src/WebApi_ws_vedirect_live.cpp index 1edbe13a0..e416ff871 100644 --- a/src/WebApi_ws_vedirect_live.cpp +++ b/src/WebApi_ws_vedirect_live.cpp @@ -145,7 +145,7 @@ void WebApiWsVedirectLiveClass::generateJsonResponse(JsonVariant& root) root["dpl"]["PLSTATE"] = -1; if (Configuration.get().PowerLimiter_Enabled) root["dpl"]["PLSTATE"] = PowerLimiter.getPowerLimiterState(); - root["dpl"]["PLLIMIT"] = PowerLimiter.getLastRequestedPowewrLimit(); + root["dpl"]["PLLIMIT"] = PowerLimiter.getLastRequestedPowerLimit(); if (VeDirect.getLastUpdate() > _newestVedirectTimestamp) { _newestVedirectTimestamp = VeDirect.getLastUpdate();