Skip to content

Commit

Permalink
fix: replace infinite loop with fatalError
Browse files Browse the repository at this point in the history
  • Loading branch information
kkebo committed Aug 31, 2024
1 parent 2fdc372 commit 7f49663
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Kernel/uart.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func initUART() {
mbox.6 = 3_000_000 // 3 Mhz
mbox.7 = 0 // clear turbo
mbox.8 = MboxTag.end
guard mboxCall(ch: 8) else { repeat {} while true }
guard mboxCall(ch: 8) else { fatalError() }
#endif

// map UART0 to GPIO pins
Expand Down

0 comments on commit 7f49663

Please sign in to comment.