From 05b5e8c3c6a69f58a2a634de235605d7806de50d Mon Sep 17 00:00:00 2001 From: kbracher Date: Fri, 17 May 2024 00:23:23 +0200 Subject: [PATCH] update constants, SLAVE_POWER_1 behavior --- Core/Inc/slave_monitoring.h | 6 +++--- Core/Src/slave_monitoring.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Core/Inc/slave_monitoring.h b/Core/Inc/slave_monitoring.h index d1efaa3..0e0445b 100644 --- a/Core/Inc/slave_monitoring.h +++ b/Core/Inc/slave_monitoring.h @@ -3,9 +3,9 @@ #include -#define N_SLAVES 6 -#define N_CELLS_SERIES 17 -#define N_CELLS_PARALLEL 5 +#define N_SLAVES 3 +#define N_CELLS_SERIES 15 +#define N_CELLS_PARALLEL 4 #define N_TEMP_SENSORS 32 #define SLAVE_TIMEOUT 500 diff --git a/Core/Src/slave_monitoring.c b/Core/Src/slave_monitoring.c index da68b60..243a0c7 100644 --- a/Core/Src/slave_monitoring.c +++ b/Core/Src/slave_monitoring.c @@ -47,7 +47,7 @@ void slaves_init() { } HAL_GPIO_WritePin(SLAVE_POWER_0_GPIO_Port, SLAVE_POWER_0_Pin, GPIO_PIN_SET); - HAL_GPIO_WritePin(SLAVE_POWER_1_GPIO_Port, SLAVE_POWER_1_Pin, GPIO_PIN_RESET); + HAL_GPIO_WritePin(SLAVE_POWER_1_GPIO_Port, SLAVE_POWER_1_Pin, GPIO_PIN_SET); HAL_GPIO_WritePin(SLAVE_POWER_DSEL_GPIO_Port, SLAVE_POWER_DSEL_Pin, GPIO_PIN_RESET); // TODO: Enable & read out current