From 8acccc4002adc03a5c1f15301af0a52caf9a9bb1 Mon Sep 17 00:00:00 2001 From: ARNik Date: Tue, 9 Dec 2025 00:17:45 +0300 Subject: [PATCH] fix Stat Decode error in file transfer keep alive mode --- src/osdp_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osdp_file.c b/src/osdp_file.c index cc7d003..b6c248a 100644 --- a/src/osdp_file.c +++ b/src/osdp_file.c @@ -129,7 +129,7 @@ int osdp_file_cmd_stat_decode(struct osdp_pd *pd, uint8_t *buf, int len) return -1; } - if (f->state != OSDP_FILE_INPROG) { + if (f->state != OSDP_FILE_INPROG && f->state != OSDP_FILE_KEEP_ALIVE) { LOG_ERR("Stat_Decode: File transfer is not in progress!"); return -1; }