fet: reduce polling interval to 50 ms (was 500 ms).
This commit is contained in:
parent
d512949d81
commit
d2c91feeb0
3
fet.c
3
fet.c
|
@ -604,8 +604,7 @@ static device_status_t fet_poll(device_t dev_base)
|
||||||
{
|
{
|
||||||
struct fet_device *dev = (struct fet_device *)dev_base;
|
struct fet_device *dev = (struct fet_device *)dev_base;
|
||||||
|
|
||||||
/* Without this delay, breakpoints can get lost. */
|
if (usleep(50000) < 0)
|
||||||
if (usleep(500000) < 0)
|
|
||||||
return DEVICE_STATUS_INTR;
|
return DEVICE_STATUS_INTR;
|
||||||
|
|
||||||
if (xfer(dev, C_STATE, NULL, 0, 1, 0) < 0) {
|
if (xfer(dev, C_STATE, NULL, 0, 1, 0) < 0) {
|
||||||
|
|
Loading…
Reference in New Issue