From 1f037da32630b63e411e1c78a391a9fba8043128 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Thu, 19 Feb 2026 15:57:59 +0100 Subject: [PATCH] Do no parse flash data as TLV. Solves #50. Signed-off-by: Pol Henarejos --- src/openpgp/cmd_get_data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openpgp/cmd_get_data.c b/src/openpgp/cmd_get_data.c index b884edd..1dc3059 100644 --- a/src/openpgp/cmd_get_data.c +++ b/src/openpgp/cmd_get_data.c @@ -54,7 +54,7 @@ int cmd_get_data() { } uint16_t fids[] = { 1, fid }; uint16_t data_len = parse_do(fids, 1); - if (!(fid >= EF_PRIV_DO_1 && fid <= EF_PRIV_DO_4)) { + if (!(ef->type & FILE_DATA_FLASH)) { uint8_t *p = NULL; uint16_t tg = 0; uint16_t tg_len = 0;