From 9e5764fa78849d7125aa327838cbb8aab9f72a95 Mon Sep 17 00:00:00 2001 From: Andre Heinemans Date: Tue, 18 Oct 2022 12:59:38 +0200 Subject: [PATCH 1/4] fixed i2c port selection --- lib/apdu/se05x_APDU_apis.h | 2 +- lib/apdu/se05x_APDU_impl.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/apdu/se05x_APDU_apis.h b/lib/apdu/se05x_APDU_apis.h index 544f065..38cf017 100644 --- a/lib/apdu/se05x_APDU_apis.h +++ b/lib/apdu/se05x_APDU_apis.h @@ -21,7 +21,7 @@ * * @return The sm status. */ -smStatus_t Se05x_API_SessionOpen(pSe05xSession_t session_ctx); +smStatus_t Se05x_API_SessionOpen(pSe05xSession_t session_ctx, void *conn_context); /** Se05x_API_SessionClose * diff --git a/lib/apdu/se05x_APDU_impl.c b/lib/apdu/se05x_APDU_impl.c index 966aca0..4acfad7 100644 --- a/lib/apdu/se05x_APDU_impl.c +++ b/lib/apdu/se05x_APDU_impl.c @@ -35,7 +35,7 @@ bool Se05x_IsInValidRangeOfUID(uint32_t uid) return FALSE; } -smStatus_t Se05x_API_SessionOpen(pSe05xSession_t session_ctx) +smStatus_t Se05x_API_SessionOpen(pSe05xSession_t session_ctx, void *conn_context) { size_t buff_len = 0; size_t tx_len = 0; @@ -53,7 +53,7 @@ smStatus_t Se05x_API_SessionOpen(pSe05xSession_t session_ctx) buff_len = sizeof(session_ctx->apdu_buffer); - ret = smComT1oI2C_Init(&session_ctx->conn_context, NULL); + ret = smComT1oI2C_Init(&session_ctx->conn_context, conn_context); ENSURE_OR_GO_CLEANUP(SM_OK == ret); if (session_ctx->session_resume == 1) { -- 2.25.1