From 078f68572e52a496c43e212081a2116ec86d46f4 Mon Sep 17 00:00:00 2001 From: "David J. Fiddes" Date: Thu, 25 Sep 2025 13:02:48 +0100 Subject: [PATCH] Fix CANopen SDO index for retrieving errors Commit 087010a4 broke user space commands (load, save, default, start, stop) by using the SDO index 0x5002. Fix this by moving the two SDO indices to 0x5003 and 0x5004. Tests: - Retest error posting and display via CAN and an updated OpenInverter CAN Tool - Start and stop the stm32-sine inveter via CAN --- src/cansdo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cansdo.cpp b/src/cansdo.cpp index 8e55263..79431d0 100644 --- a/src/cansdo.cpp +++ b/src/cansdo.cpp @@ -29,8 +29,8 @@ #define SDO_INDEX_MAP_RX 0x3001 #define SDO_INDEX_MAP_RD 0x3100 #define SDO_INDEX_STRINGS 0x5001 -#define SDO_INDEX_ERROR_NUM 0x5002 -#define SDO_INDEX_ERROR_TIME 0x5003 +#define SDO_INDEX_ERROR_NUM 0x5003 +#define SDO_INDEX_ERROR_TIME 0x5004 #define PRINT_BUF_ENQUEUE(c) printBuffer[(printByteIn++) & (sizeof(printBuffer) - 1)] = c