diff --git a/fpdkcom.c b/fpdkcom.c index edbccf3..829f235 100644 --- a/fpdkcom.c +++ b/fpdkcom.c @@ -31,7 +31,7 @@ static const char FPDK_VERSCAN[] = "FREE-PDK EASY PROG - HW:%u.%u SW:%u.%u PROTO #define FPDKCOM_CMDRSP_PROBEIC_TIMEOUT 3500 #define FPDKCOM_CMDRSP_READIC_TIMEOUT 1000 #define FPDKCOM_CMDRSP_ERASE_TIMEOUT 2000 -#define FPDKCOM_CMDRSP_WRITE_TIMEOUT 2000 +#define FPDKCOM_CMDRSP_WRITE_TIMEOUT 4000 #define FPDKCOM_CMDRSP_CALIBRATEIC_TIMEOUT 10000 static bool _FPDKCOM_SendCommand(const int fd, const FPDKPROTO_CMD cmd, const uint8_t* dat, const uint8_t len) @@ -449,7 +449,7 @@ int FPDKCOM_IC_Write(const int fd, write_block_clock_group_trail_clocks }; uint8_t resp[3+sizeof(uint16_t)]; - if( sizeof(resp) != _FPDKCOM_SendReceiveCommandWithTimeout(fd, FPDKPROTO_CMD_WRITEIC, dat,sizeof(dat), resp, sizeof(resp), FPDKCOM_CMDRSP_READIC_TIMEOUT) ) + if( sizeof(resp) != _FPDKCOM_SendReceiveCommandWithTimeout(fd, FPDKPROTO_CMD_WRITEIC, dat,sizeof(dat), resp, sizeof(resp), FPDKCOM_CMDRSP_WRITE_TIMEOUT) ) return -1; return( resp[3] | (((int)resp[4])<<8) );