Skip to content

Wrong magic value? #1

@Rubeer

Description

@Rubeer

Hi, nice and simple library there.
I am not sure when this was changed, but in JLink V7.94 the magic value is "SEGGER RTT":

diff --git a/rtt.zig b/rtt.zig
index dbb7e91..3685948 100644
--- a/rtt.zig
+++ b/rtt.zig
@@ -62,7 +62,7 @@ export var _SEGGER_RTT: extern struct {
     channel: Channel,
 } = .{
     .magic = [_]u8{
-        '_', 'S', 'E', 'G', 'G', 'E', 'R', '_', 'R', 'T', 'T', 0, 0, 0, 0, 0,
+        'S', 'E', 'G', 'G', 'E', 'R', ' ', 'R', 'T', 'T', 0, 0, 0, 0, 0, 0,
     },
     .max_up_channels = 1,
     .max_down_channels = 0,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions