|
|
@ -349,13 +349,17 @@ static app_owi_result_t do_stable_owi_read(uint8_t id, uint8_t read_len) |
|
|
app_owi_result_t r; |
|
|
app_owi_result_t r; |
|
|
|
|
|
|
|
|
if (is_long_owi_read_len(read_len)) { |
|
|
if (is_long_owi_read_len(read_len)) { |
|
|
|
|
|
app_kick_wdt(); |
|
|
delay_us(OWI_LONG_READ_SETTLE_US); |
|
|
delay_us(OWI_LONG_READ_SETTLE_US); |
|
|
|
|
|
app_kick_wdt(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
r = app_owi_read_basic(id, (int)read_len); |
|
|
r = app_owi_read_basic(id, (int)read_len); |
|
|
|
|
|
|
|
|
if ((!r.ok || r.timeout || r.read_len < read_len) && is_long_owi_read_len(read_len)) { |
|
|
if ((!r.ok || r.timeout || r.read_len < read_len) && is_long_owi_read_len(read_len)) { |
|
|
|
|
|
app_kick_wdt(); |
|
|
delay_us(OWI_LONG_READ_RETRY_US); |
|
|
delay_us(OWI_LONG_READ_RETRY_US); |
|
|
|
|
|
app_kick_wdt(); |
|
|
r = app_owi_read_basic(id, (int)read_len); |
|
|
r = app_owi_read_basic(id, (int)read_len); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -2297,4 +2301,4 @@ void R_MAIN_UserInit(void) |
|
|
g_fixed_addr = DipSwitch_ReadAddr_0to31(); |
|
|
g_fixed_addr = DipSwitch_ReadAddr_0to31(); |
|
|
/* End user code. Do not edit comment generated here */ |
|
|
/* End user code. Do not edit comment generated here */ |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|