Skip to content

Commit c17b119

Browse files
committed
Loading bugfix
1 parent b455273 commit c17b119

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,8 @@ void load_cart_rom_file(char *filename) {
413413
FIL fil;
414414
FRESULT fr;
415415

416-
size_t bufsize = sizeof(SCREEN);
417-
BYTE *buffer = (BYTE *) SCREEN;
416+
size_t bufsize = sizeof(ram);
417+
BYTE *buffer = (BYTE *) ram;
418418
auto ofs = FLASH_TARGET_OFFSET;
419419
printf("Writing %s rom to flash %x\r\n", filename, ofs);
420420
fr = f_open(&fil, filename, FA_READ);
@@ -615,7 +615,7 @@ int main() {
615615
set_sys_clock_khz(288000, true);
616616

617617
/* Initialise USB serial connection for debugging. */
618-
stdio_init_all();
618+
//stdio_init_all();
619619
// time_init();
620620
//sleep_ms(5000);
621621

0 commit comments

Comments
 (0)