From e6d064ce06958e49e860b617c0c7fa5445040e48 Mon Sep 17 00:00:00 2001 From: Kevin Trocolli Date: Mon, 27 Mar 2023 04:03:23 -0400 Subject: [PATCH] bpreader: remove incorrect structs --- board/bpreader.c | 9 ++++++++- board/bpreader.h | 31 ------------------------------- 2 files changed, 8 insertions(+), 32 deletions(-) diff --git a/board/bpreader.c b/board/bpreader.c index 908d932..0d08f3e 100644 --- a/board/bpreader.c +++ b/board/bpreader.c @@ -13,9 +13,12 @@ #include "board/bpreader.h" +const uint8_t BPREADER_CMD_GO_NEXT[6] = { 0x00, 0x00, 0xFF, 0x00, 0xFF, 0x00 }; + static HRESULT bp_handle_irp(struct irp *irp); static HRESULT bp_handle_irp_locked(struct irp *irp); static HRESULT crack_bpreader_request(); +static HRESULT build_bpreader_response(); static struct bpreader_config *config; static struct uart bp_uart; @@ -191,7 +194,7 @@ static HRESULT bp_handle_irp_locked(struct irp *irp) 0x00, 0x04, // ATQA 0x08, //SAK 0x04, // Unknown - 0x42, 0xF0, 0xE7, 0x05, // S/N + 0x42, 0xF0, 0x00, 0x00, // S/N 0xB0, 0x00 }; // Footer*/ memcpy_s(buff, sizeof(buff), buff2, sizeof(buff2)); } else { @@ -329,4 +332,8 @@ static HRESULT crack_bpreader_request() { } return S_OK; +} + +static HRESULT build_bpreader_response() { + } \ No newline at end of file diff --git a/board/bpreader.h b/board/bpreader.h index 69f17c8..69e9c28 100644 --- a/board/bpreader.h +++ b/board/bpreader.h @@ -45,7 +45,6 @@ Commands | 0x14 | 0x20 | Unknown | a lot, see bpreader.c | | 0x18 | 0x0D | Unknown | 0x07, 0xDC, 0xF4, 0x3F, 0x11, 0x4D, 0x85, 0x61, 0xF1, 0x26, 0x6A, 0x87 | */ -//const uint8_t bpreader_CMD_GO_NEXT[6] = { 0x00, 0x00, 0xFF, 0x00, 0xFF, 0x00 }; struct bpreader_cmd_header { uint8_t padding0_00; @@ -61,33 +60,3 @@ struct bpreader_cmd_footer { uint8_t checksum; uint8_t padding; }; - -struct bpreader_resp_02 { - struct bpreader_cmd_header; - uint8_t data; - struct bpreader_cmd_footer; -}; - -struct bpreader_resp_03 { - struct bpreader_cmd_header; - uint8_t data[2]; - struct bpreader_cmd_footer; -}; - -struct bpreader_resp_04 { - struct bpreader_cmd_header; - uint8_t data[3]; - struct bpreader_cmd_footer; -}; - -struct bpreader_resp_05 { - struct bpreader_cmd_header; - uint8_t data[4]; - struct bpreader_cmd_footer; -}; - -struct bpreader_resp_0A { - struct bpreader_cmd_header; - uint8_t data[9]; - struct bpreader_cmd_footer; -}; \ No newline at end of file