diff --git a/src/core/pin.zig b/src/core/pin.zig index 1bd4868..5fccbaf 100644 --- a/src/core/pin.zig +++ b/src/core/pin.zig @@ -28,7 +28,7 @@ pub fn Pin(comptime spec: []const u8) type { chip.parsePin(spec); return struct { - pub const name = if (std.mem.startsWith(u8, spec, board_namespace.len)) + pub const name = if (std.mem.startsWith(u8, spec, board_namespace)) // Remove the board: prefix spec[board_namespace.len..] else if (std.mem.startsWith(u8, spec, chip_namespace))