Suppress loop-not-executed warning

This commit is contained in:
stefanrueger
2025-05-18 23:40:40 +02:00
parent 042ca89b2c
commit 97039410d4

View File

@@ -305,11 +305,13 @@ static int ft245r_recv(const PROGRAMMER *pgm, unsigned char *buf, size_t len) {
return result;
buf[i] = (uint8_t) result;
#if FT245R_BITBANG_VARIABLE_PULSE_WIDTH_WORKAROUND
for(int j = 1; j < baud_multiplier; ++j) {
result = ft245r_rx_buf_fill_and_get(pgm);
if(result < 0)
return result;
}
#endif
}
return 0;
}