Skip to content

Commit

Permalink
Merge pull request LedgerHQ#662 from LedgerHQ/lpa/update_api_level_lns
Browse files Browse the repository at this point in the history
Update API_LEVEL_LNS
  • Loading branch information
lpascal-ledger authored May 15, 2024
2 parents 611ba9b + 9295cda commit fd0edb4
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_all_apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install tomlq
run: |
Expand Down Expand Up @@ -96,14 +96,14 @@ jobs:

steps:
- name: Clone App
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: LedgerHQ/${{ matrix.repo_info.repo_name }}
ref: ${{ matrix.repo_info.default_branch }}
submodules: true

- name: Clone SDK
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: sdk
ref: ${{ inputs.sdk_branch }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check_clang_static_analyzer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ jobs:

steps:
- name: Clone Boilerplate
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: LedgerHQ/app-boilerplate
ref: master

- name: Clone SDK
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: sdk

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
Expand Down
11 changes: 11 additions & 0 deletions include/cx_errors.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,24 @@
* Check the error code of a function.
* @hideinitializer
*/
#ifdef HAVE_BOLOS
#define CX_CHECK(call) \
do { \
error = call; \
if (error) { \
goto end; \
} \
} while (0)
#else
#define CX_CHECK(call) \
do { \
error = call; \
if (error) { \
PRINTF("[CX_CHECK] - %s: %d\n", __FILE__, __LINE__); \
goto end; \
} \
} while (0)
#endif

/**
* Check the error code of a function and ignore
Expand Down

0 comments on commit fd0edb4

Please sign in to comment.