From 1925417e30d65d7e3cbd82f73edbaa048583121a Mon Sep 17 00:00:00 2001 From: Emmanuel HC Date: Fri, 15 May 2026 16:30:19 -0500 Subject: [PATCH] cortex test --- platformio.ini | 2 +- src/EPMS/RPP/RPP_Cortex_TCP/State_Standby.cpp | 2 +- src/EPMS/RPP/RPP_Cortex_TCP/config.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/platformio.ini b/platformio.ini index 82ff56a..6a4c14f 100644 --- a/platformio.ini +++ b/platformio.ini @@ -12,7 +12,7 @@ default_envs = RPP_Cortex_TCP ; Select here the name of the configuration you want to download [env] -upload_port = COM19 +upload_port = COM15 [common_env_options] framework = arduino diff --git a/src/EPMS/RPP/RPP_Cortex_TCP/State_Standby.cpp b/src/EPMS/RPP/RPP_Cortex_TCP/State_Standby.cpp index 72f57e4..dcefc39 100644 --- a/src/EPMS/RPP/RPP_Cortex_TCP/State_Standby.cpp +++ b/src/EPMS/RPP/RPP_Cortex_TCP/State_Standby.cpp @@ -152,7 +152,7 @@ State* StandbyState::update(Equipment* equipment) float mainCB_neutralCurrent = 0.0f; float mainCB_maxTotalKw = 0.0f; float mainCB_maxTotalCurrent = 0.0f; - for (int i = 1; i <= 16; i++) { + for (int i = 1; i <= 8; i++) { std::string kw_name = "CB" + std::to_string(i) + "_kW"; std::string max_current_name = "CB" + std::to_string(i) + "_maxCurrent"; mainCB_total_kW += getPointValue(equipment, kw_name.c_str()); diff --git a/src/EPMS/RPP/RPP_Cortex_TCP/config.h b/src/EPMS/RPP/RPP_Cortex_TCP/config.h index 6307c77..3de5778 100644 --- a/src/EPMS/RPP/RPP_Cortex_TCP/config.h +++ b/src/EPMS/RPP/RPP_Cortex_TCP/config.h @@ -23,7 +23,7 @@ #include const char *ssid = "Oracle_SA"; /**< @brief The SSID of the WiFi network. */ const char *password = "Prime!123"; /**< @brief The password for the WiFi network. */ - IPAddress local_IP(172, 17, 38, 72); /**< @brief The static IP address for the device. */ + IPAddress local_IP(172, 17, 38, 41); /**< @brief The static IP address for the device. */ IPAddress gateway(172, 17, 38, 1); /**< @brief The gateway IP address. */ IPAddress subnet(255, 255, 255, 0); /**< @brief The subnet mask. */