Skip to content

Commit

Permalink
Update casing of std.os.uefi.Status enum fields
Browse files Browse the repository at this point in the history
  • Loading branch information
linusg authored and alimpfard committed Feb 11, 2025
1 parent 6076a08 commit 8b4d0fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,10 @@ pub const SystemCapabilities = switch (builtin.os.tag) {
var i: usize = 0;
const writer = getStdOut().writer();
var key: std.os.uefi.protocol.SimpleTextInputEx.Key.Input = undefined;
var status = std.os.uefi.Status.NotReady;
var status: std.os.uefi.Status = .not_ready;
while (true) {
status = context.console_in.readKeyStroke(&key);
if (status == std.os.uefi.Status.Success) {
if (status == .success) {
if (key.scan_code == 0) {
if (key.unicode_char == 0xd or key.unicode_char == 0xa) {
bytes[i] = '\n';
Expand All @@ -224,7 +224,7 @@ pub const SystemCapabilities = switch (builtin.os.tag) {

while (i < bytes.len) {
status = context.console_in.readKeyStroke(&key);
if (status == std.os.uefi.Status.Success) {
if (status == .success) {
if (key.scan_code == 0) {
if (key.unicode_char == 0xd or key.unicode_char == 0xa) {
bytes[i] = '\n';
Expand Down

0 comments on commit 8b4d0fe

Please sign in to comment.