Switch to parseUnsigned in gpioget command

This commit is contained in:
Elara 2023-12-25 12:50:56 -08:00
parent 10cbc36b6b
commit 9e4ee57ec2

View File

@ -32,7 +32,7 @@ pub fn main() !void {
// Iterate over each argument starting from the second one
for (args[2..args.len]) |argument| {
// Parse each argument as an integer and add it to offsets
var offset = try std.fmt.parseInt(u32, argument, 10);
var offset = try std.fmt.parseUnsigned(u32, argument, 10);
try offsets.append(offset);
}