Skip to content

Commit

Permalink
Merge pull request #489 from LedgerHQ/abo_add_api_level_20
Browse files Browse the repository at this point in the history
Stax: Support API_LEVEL_20
  • Loading branch information
abonnaudet-ledger authored Jun 11, 2024
2 parents 56ed996 + 4b948bf commit 689c37c
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 1 deletion.
Binary file added speculos/cxlib/stax-api-level-cx-20.elf
Binary file not shown.
Binary file added speculos/fonts/stax-fonts-20.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 @@ -230,6 +230,7 @@ void parse_fonts(void *code, unsigned long text_load_addr,
case SDK_API_LEVEL_15:
case SDK_API_LEVEL_18:
case SDK_API_LEVEL_19:
case SDK_API_LEVEL_20:
break;
default:
// Unsupported API_LEVEL, will not parse fonts!
Expand Down
3 changes: 2 additions & 1 deletion src/launcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,8 @@ 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_15) {
sdk_version != SDK_API_LEVEL_14 && sdk_version != SDK_API_LEVEL_15 &&
sdk_version != SDK_API_LEVEL_20) {
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 @@ -34,6 +34,7 @@ typedef enum {
SDK_API_LEVEL_17,
SDK_API_LEVEL_18,
SDK_API_LEVEL_19,
SDK_API_LEVEL_20,
SDK_COUNT
} sdk_version_t;

Expand Down

0 comments on commit 689c37c

Please sign in to comment.