From 14a73826f4fee55206df0e69f57dfd2fb19fa7b2 Mon Sep 17 00:00:00 2001 From: Morris3190 Date: Sun, 1 Jun 2025 02:47:48 +0200 Subject: [PATCH] Update PYLON-CAN.h to allow high capacity >255Ah --- Software/src/inverter/PYLON-CAN.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Software/src/inverter/PYLON-CAN.h b/Software/src/inverter/PYLON-CAN.h index 53c8308d..f580672e 100644 --- a/Software/src/inverter/PYLON-CAN.h +++ b/Software/src/inverter/PYLON-CAN.h @@ -52,14 +52,14 @@ class PylonInverter : public CanInverterProtocol { .ID = 0x7320, .data = {TOTAL_CELL_AMOUNT, (uint8_t)(TOTAL_CELL_AMOUNT >> 8), MODULES_IN_SERIES, CELLS_PER_MODULE, (uint8_t)(VOLTAGE_LEVEL & 0x00FF), (uint8_t)(VOLTAGE_LEVEL >> 8), - AH_CAPACITY, (uint8_t)(AH_CAPACITY >> 8)}}; + (uint8_t) (AH_CAPACITY & 0x00FF), (uint8_t)(AH_CAPACITY >> 8)}}; CAN_frame PYLON_7321 = {.FD = false, .ext_ID = true, .DLC = 8, .ID = 0x7321, .data = {TOTAL_CELL_AMOUNT, (uint8_t)(TOTAL_CELL_AMOUNT >> 8), MODULES_IN_SERIES, CELLS_PER_MODULE, (uint8_t)(VOLTAGE_LEVEL & 0x00FF), (uint8_t)(VOLTAGE_LEVEL >> 8), - AH_CAPACITY, (uint8_t)(AH_CAPACITY >> 8)}}; + (uint8_t) (AH_CAPACITY & 0x00FF), (uint8_t)(AH_CAPACITY >> 8)}}; CAN_frame PYLON_4210 = {.FD = false, .ext_ID = true, .DLC = 8,