Skip to content

Commit 68b9f67

Browse files
authored
Fix ChibiOS version display to show correct product version (#178)
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.
1 parent dfb2879 commit 68b9f67

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/common/common.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
#include "hydrabus.h"
2323
#include "hydrafw_version.hdr"
24+
#include "chversion.h"
2425

2526
#include <stdio.h>
2627
#include <string.h>
@@ -218,7 +219,7 @@ void cmd_show_system(t_hydra_console *con)
218219
cprintf(con, "Flash Size: %dKB\r\n", *((uint16_t*)0x1FFF7A22));
219220
cprintf(con, "\r\n");
220221

221-
cprintf(con, "Kernel: ChibiOS %s\r\n", CH_KERNEL_VERSION);
222+
cprintf(con, "Kernel: ChibiOS %s (RT %s)\r\n", CH_VERSION, CH_KERNEL_VERSION);
222223
#ifdef PORT_COMPILER_NAME
223224
cprintf(con, "Compiler: %s\r\n", PORT_COMPILER_NAME);
224225
#endif

0 commit comments

Comments
 (0)