Skip to content

Commit

Permalink
Loading bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
xrip committed Oct 2, 2023
1 parent b455273 commit c17b119
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,8 @@ void load_cart_rom_file(char *filename) {
FIL fil;
FRESULT fr;

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

/* Initialise USB serial connection for debugging. */
stdio_init_all();
//stdio_init_all();
// time_init();
//sleep_ms(5000);

Expand Down

0 comments on commit c17b119

Please sign in to comment.