Skip to content

Commit

Permalink
API_LEVEL_15 support for STAX
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippeBonnaz committed Feb 16, 2024
1 parent 8ffbdb5 commit 514b404
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 1 deletion.
Binary file added speculos/cxlib/stax-api-level-cx-15.elf
Binary file not shown.
Binary file added speculos/fonts/stax-fonts-15.bin
Binary file not shown.
1 change: 1 addition & 0 deletions src/bolos/fonts_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ void parse_fonts(void *code, unsigned long text_load_addr,
case SDK_API_LEVEL_12:
case SDK_API_LEVEL_13:
case SDK_API_LEVEL_14:
case SDK_API_LEVEL_15:
break;
default:
// Unsupported API_LEVEL, will not parse fonts!
Expand Down
2 changes: 1 addition & 1 deletion src/launcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ int main(int argc, char *argv[])
sdk_version != SDK_API_LEVEL_8 && sdk_version != SDK_API_LEVEL_9 &&
sdk_version != SDK_API_LEVEL_10 && sdk_version != SDK_API_LEVEL_11 &&
sdk_version != SDK_API_LEVEL_12 && sdk_version != SDK_API_LEVEL_13 &&
sdk_version != SDK_API_LEVEL_14) {
sdk_version != SDK_API_LEVEL_14 && sdk_version != SDK_API_LEVEL_15) {
errx(1, "invalid SDK version for the Ledger Stax");
}
break;
Expand Down
1 change: 1 addition & 0 deletions src/sdk.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ typedef enum {
SDK_API_LEVEL_12,
SDK_API_LEVEL_13,
SDK_API_LEVEL_14,
SDK_API_LEVEL_15,
SDK_COUNT
} sdk_version_t;

Expand Down

0 comments on commit 514b404

Please sign in to comment.