mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-23 04:54:26 +00:00
Make the serial open timeout for BFL generically 1 second on windows.
This commit is contained in:
parent
7dffa07ed9
commit
9cae9a9d7f
@ -38,6 +38,10 @@ enum {
|
|||||||
FT_OK,
|
FT_OK,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Code must deal with a timeout. Make it 1 second on windows, 0.1 on linux.
|
||||||
|
#define BFopen(devpath) serial_open(devpath, 0, 10, true)
|
||||||
|
#else /* WIN32 */
|
||||||
|
#define BFopen(devpath) serial_open(devpath, 0, 1, true)
|
||||||
#endif /* WIN32 */
|
#endif /* WIN32 */
|
||||||
|
|
||||||
#include "compat.h"
|
#include "compat.h"
|
||||||
@ -60,9 +64,6 @@ enum {
|
|||||||
|
|
||||||
struct device_api bitforce_api;
|
struct device_api bitforce_api;
|
||||||
|
|
||||||
// Code must deal with a timeout
|
|
||||||
#define BFopen(devpath) serial_open(devpath, 0, 1, true)
|
|
||||||
|
|
||||||
static void BFgets(char *buf, size_t bufLen, int fd)
|
static void BFgets(char *buf, size_t bufLen, int fd)
|
||||||
{
|
{
|
||||||
do {
|
do {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user