|
|
@ -287,7 +287,8 @@ re_send: |
|
|
|
BFgets(pdevbuf, sizeof(pdevbuf), fdDev); |
|
|
|
BFgets(pdevbuf, sizeof(pdevbuf), fdDev); |
|
|
|
if (!pdevbuf[0] || !strncasecmp(pdevbuf, "B", 1)) { |
|
|
|
if (!pdevbuf[0] || !strncasecmp(pdevbuf, "B", 1)) { |
|
|
|
mutex_unlock(&bitforce->device_mutex); |
|
|
|
mutex_unlock(&bitforce->device_mutex); |
|
|
|
nmsleep(WORK_CHECK_INTERVAL_MS); |
|
|
|
if (!restart_wait(WORK_CHECK_INTERVAL_MS)) |
|
|
|
|
|
|
|
return false; |
|
|
|
goto re_send; |
|
|
|
goto re_send; |
|
|
|
} else if (unlikely(strncasecmp(pdevbuf, "OK", 2))) { |
|
|
|
} else if (unlikely(strncasecmp(pdevbuf, "OK", 2))) { |
|
|
|
mutex_unlock(&bitforce->device_mutex); |
|
|
|
mutex_unlock(&bitforce->device_mutex); |
|
|
|