Skip to content

Commit

Permalink
Return actual version information
Browse files Browse the repository at this point in the history
  • Loading branch information
networkfusion committed Dec 26, 2024
1 parent 94139f7 commit 36a8005
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/menu/views/flashcart_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ static const char *format_cart_type () {
}

static const char *format_cart_version () {
// FIXME: show the returned firmware version info.
// flashcart_firmware_version_t version;
// version = flashcart_get_firmware_version();

return "Feature coming soon.";
flashcart_firmware_version_t version = flashcart_get_firmware_version();
static char buffer[16];
sprintf(buffer, "%u.%u.%lu", version.major, version.minor, version.revision);
return buffer;
}

static void process (menu_t *menu) {
Expand Down

0 comments on commit 36a8005

Please sign in to comment.