From 2ca3f72de8968fba24f5a78a6c0a3c548dee3be0 Mon Sep 17 00:00:00 2001
From: kbracher <k.bracher@fasttube.de>
Date: Sun, 23 Mar 2025 15:43:59 +0100
Subject: [PATCH] get serial ID working?

---
 .../Core/Lib/ADBMS6830B_Driver/Core/Src/ADBMS_Abstraction.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/AMS_Master_Code/Core/Lib/ADBMS6830B_Driver/Core/Src/ADBMS_Abstraction.c b/AMS_Master_Code/Core/Lib/ADBMS6830B_Driver/Core/Src/ADBMS_Abstraction.c
index 058c84f..412eb60 100644
--- a/AMS_Master_Code/Core/Lib/ADBMS6830B_Driver/Core/Src/ADBMS_Abstraction.c
+++ b/AMS_Master_Code/Core/Lib/ADBMS6830B_Driver/Core/Src/ADBMS_Abstraction.c
@@ -31,7 +31,9 @@ HAL_StatusTypeDef amsReset() {
     amsWakeUp();
     readCMD(SRST, CMD_EMPTY_BUFFER, 0);
 
-    /* uint8_t sidbuffer[CMD_BUFFER_SIZE(SID_GROUP_SIZE)] = {};
+    amsWakeUp();
+
+    uint8_t sidbuffer[CMD_BUFFER_SIZE(SID_GROUP_SIZE)] = {};
     if (readCMD(RDSID, sidbuffer, SID_GROUP_SIZE) != HAL_OK) {
         bool nonzero = false;
         for (size_t i = 0; i < N_BMS; i++) {
@@ -61,7 +63,7 @@ HAL_StatusTypeDef amsReset() {
             }
             debug_log_cont(LOG_LEVEL_INFO, "0x%lx%lx ", (uint32_t)(id >> 32), (uint32_t)(id & 0xFFFFFFFF)); //newlib does not support %llu
         }
-    } */
+    }
 
     mcuDelay(10);
     amsWakeUp();