Skip to content

Commit

Permalink
KHz / MHz typo
Browse files Browse the repository at this point in the history
  • Loading branch information
untoxa committed Aug 18, 2022
1 parent 2c99bea commit daddf84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pico_gb_printer.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ enum printer_state {
};

bool debug_enable = ENABLE_DEBUG;
bool speed_240_KHz = false;
bool speed_240_MHz = false;

volatile uint64_t time_us_now = 0;
volatile uint64_t last_watchdog, last_print_moment;
Expand Down Expand Up @@ -311,7 +311,7 @@ int fs_open_custom(struct fs_file *file, const char *name) {
"\"system\":{\"fast\":%s,\"buffer_size\":%d}}",
on_off[debug_enable],
true_false[synchronized], receive_data_pointer,
true_false[speed_240_KHz], sizeof(receive_data));
true_false[speed_240_MHz], sizeof(receive_data));
file->index = file->len;
file->flags = FS_FILE_FLAGS_CUSTOM;
return 1;
Expand Down Expand Up @@ -384,7 +384,7 @@ void core1_context() {
#endif

int main() {
speed_240_KHz = set_sys_clock_khz(240000, false);
speed_240_MHz = set_sys_clock_khz(240000, false);

// For toggle_led
gpio_init(LED_PIN);
Expand Down

0 comments on commit daddf84

Please sign in to comment.