diff --git a/firmware/hw_layer/openblt/efi_blt_ids.h b/firmware/hw_layer/openblt/efi_blt_ids.h index cd34eb352b..1450be3f5c 100644 --- a/firmware/hw_layer/openblt/efi_blt_ids.h +++ b/firmware/hw_layer/openblt/efi_blt_ids.h @@ -18,3 +18,7 @@ /** \brief Configure CAN message ID target->host. */ #define BOOT_COM_CAN_TX_MSG_ID (0x107E1 | 0x80000000) #endif + +#ifndef BOOT_COM_CAN_EXT +#define BOOT_COM_CAN_EXT true +#endif diff --git a/misc/libopenblt_jni/openblt_jni.cpp b/misc/libopenblt_jni/openblt_jni.cpp index cc00be134b..34dbe44f92 100644 --- a/misc/libopenblt_jni/openblt_jni.cpp +++ b/misc/libopenblt_jni/openblt_jni.cpp @@ -131,7 +131,7 @@ static bool setupCan(JNIEnv* env, jobject jCallbacks) { canSettings.baudrate = BOOT_COM_CAN_BAUDRATE; canSettings.transmitId = BOOT_COM_CAN_RX_MSG_ID; canSettings.receiveId = BOOT_COM_CAN_TX_MSG_ID; - canSettings.useExtended = false; + canSettings.useExtended = BOOT_COM_CAN_EXT; BltSessionInit(BLT_SESSION_XCP_V10, &xcpSettings, BLT_TRANSPORT_XCP_V10_USB, &canSettings);