From 48d031b367b972993dfc9a168c9faf72fcb44cef Mon Sep 17 00:00:00 2001 From: Abdelkader Boudih Date: Thu, 24 Jul 2025 15:38:27 +0100 Subject: [PATCH] Fix ChibiOS version display to show correct product version The 'show system' command was displaying only the RT kernel version (5.1.0) instead of the actual ChibiOS product version (18.2.2). This commit: - Adds include for chversion.h to access CH_VERSION macro - Updates display to show both ChibiOS product version and RT kernel version - Changes output from 'ChibiOS 5.1.0' to 'ChibiOS 18.2.2 (RT 5.1.0)' This provides users with complete version information about both the ChibiOS product and the specific RT kernel version being used. --- src/common/common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/common.c b/src/common/common.c index c4804e8d..546f1135 100644 --- a/src/common/common.c +++ b/src/common/common.c @@ -21,6 +21,7 @@ #include "hydrabus.h" #include "hydrafw_version.hdr" +#include "chversion.h" #include #include @@ -217,7 +218,7 @@ void cmd_show_system(t_hydra_console *con) cprintf(con, "Flash Size: %dKB\r\n", *((uint16_t*)0x1FFF7A22)); cprintf(con, "\r\n"); - cprintf(con, "Kernel: ChibiOS %s\r\n", CH_KERNEL_VERSION); + cprintf(con, "Kernel: ChibiOS %s (RT %s)\r\n", CH_VERSION, CH_KERNEL_VERSION); #ifdef PORT_COMPILER_NAME cprintf(con, "Compiler: %s\r\n", PORT_COMPILER_NAME); #endif