Skip to content

Commit

Permalink
Merge pull request #85 from Zondax/hotfix_ledger
Browse files Browse the repository at this point in the history
Hotfix. Improving support for new firmware/SDK
  • Loading branch information
jleni authored Nov 21, 2021
2 parents c265a4d + 8c11c8b commit a36edc7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/gtest/CMakeLists.txt.gtest.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ project(googletest-download NONE)
include(ExternalProject)
ExternalProject_Add(googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG master
GIT_TAG release-1.11.0
SOURCE_DIR "${CMAKE_BINARY_DIR}/googletest-src"
BINARY_DIR "${CMAKE_BINARY_DIR}/googletest-build"
CONFIGURE_COMMAND ""
Expand Down
6 changes: 6 additions & 0 deletions deps/ledger-zxlib/app/common/view.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ void h_paging_init() {
viewdata.itemIdx = 0;
viewdata.pageIdx = 0;
viewdata.pageCount = 1;
viewdata.itemCount = 0xFF;
}

bool h_paging_can_increase() {
Expand Down Expand Up @@ -185,6 +186,11 @@ zxerr_t h_review_update_data() {
return zxerr_no_data;
}

if (viewdata.viewfuncGetItem == NULL) {
zemu_log_stack("h_review_update_data - GetItem==NULL");
return zxerr_no_data;
}

char buffer[20];
snprintf(buffer, sizeof(buffer), "update Idx %d/%d", viewdata.itemIdx, viewdata.pageIdx);
zemu_log_stack(buffer);
Expand Down

0 comments on commit a36edc7

Please sign in to comment.