From 3ae6f0d8f5d0d729c45456ec4d5d1a3353646ff5 Mon Sep 17 00:00:00 2001 From: BTChip Date: Sun, 3 Nov 2019 17:24:43 +0100 Subject: [PATCH] Compatibility with 1.6 SDK --- src/sdk/sdk_compat.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/sdk/sdk_compat.h b/src/sdk/sdk_compat.h index 8b91bdb..dbe07c3 100644 --- a/src/sdk/sdk_compat.h +++ b/src/sdk/sdk_compat.h @@ -18,20 +18,19 @@ #include "bolos_target.h" -#if TARGET_ID == 0x31100004 -//Use original naming of NanoS 1.5.5 - -#elif TARGET_ID == 0x33000004 +#if (TARGET_ID == 0x33000004) || ((TARGET_ID == 0x31100004) && (CX_APILEVEL >= 10)) #include "os_io_usb.h" // from NanoX 1.2.4 remap G_io_apdu_xx #define G_io_apdu_state G_io_app.apdu_state #define G_io_apdu_length G_io_app.apdu_length #define G_io_apdu_state G_io_app.apdu_state +#elif TARGET_ID == 0x31100004 +//Use original naming of NanoS 1.5.5 #else //Unknown #error Target Not Supported #endif -#endif \ No newline at end of file +#endif