aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2021-09-09 09:43:26 +0200
committerBad Diode <bd@badd10de.dev>2021-09-09 09:43:26 +0200
commit05589c7cefdb554876db97ded9370e353d0ec0b1 (patch)
tree5c39ab83a39404ea18d301a6adfdbc17648b98a3
parentf344c83420d43193fd630012613a04085f4b1918 (diff)
downloaduxnrpi-05589c7cefdb554876db97ded9370e353d0ec0b1.tar.gz
uxnrpi-05589c7cefdb554876db97ded9370e353d0ec0b1.zip
Fix uart_puts before uart_init. Thanks alderwick!
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index e2b39b8..d72ae20 100644
--- a/src/main.c
+++ b/src/main.c
@@ -121,8 +121,9 @@ file_talk(Device *d, u8 b0, u8 w) {
121 121
122void 122void
123init_uxn() { 123init_uxn() {
124 uart_puts("Initializing UXN.\n");
125 uart_init(); 124 uart_init();
125
126 uart_puts("Initializing UXN.\n");
126 ppu_init(&ppu, SCREEN_WIDTH / 8, SCREEN_HEIGHT / 8); 127 ppu_init(&ppu, SCREEN_WIDTH / 8, SCREEN_HEIGHT / 8);
127 128
128 // Copy rom to VM. 129 // Copy rom to VM.