Skip to content

Commit 5acf8fd

Browse files
authored
Merge pull request #266 from ARNik/fix-file-transfer
fix Stat Decode error in file transfer keep alive mode
2 parents 2bc96f5 + 8acccc4 commit 5acf8fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/osdp_file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ int osdp_file_cmd_stat_decode(struct osdp_pd *pd, uint8_t *buf, int len)
129129
return -1;
130130
}
131131

132-
if (f->state != OSDP_FILE_INPROG) {
132+
if (f->state != OSDP_FILE_INPROG && f->state != OSDP_FILE_KEEP_ALIVE) {
133133
LOG_ERR("Stat_Decode: File transfer is not in progress!");
134134
return -1;
135135
}

0 commit comments

Comments
 (0)