|
@@ -206,7 +206,7 @@ static void rev(unsigned char *s, size_t l)
|
|
|
#define icarus_open2(devpath, purge) serial_open(devpath, 115200, ICARUS_READ_FAULT_DECISECONDS, purge)
|
|
#define icarus_open2(devpath, purge) serial_open(devpath, 115200, ICARUS_READ_FAULT_DECISECONDS, purge)
|
|
|
#define icarus_open(devpath) icarus_open2(devpath, false)
|
|
#define icarus_open(devpath) icarus_open2(devpath, false)
|
|
|
|
|
|
|
|
-static int icarus_gets(unsigned char *buf, int fd, struct timeval *tv_finish, struct thr_info*thr, int read_count)
|
|
|
|
|
|
|
+static int icarus_gets(unsigned char *buf, int fd, struct timeval *tv_finish, struct thr_info *thr, int read_count)
|
|
|
{
|
|
{
|
|
|
ssize_t ret = 0;
|
|
ssize_t ret = 0;
|
|
|
int rc = 0;
|
|
int rc = 0;
|
|
@@ -444,6 +444,7 @@ static bool icarus_detect_one(const char *devpath)
|
|
|
|
|
|
|
|
memset(nonce_bin, 0, sizeof(nonce_bin));
|
|
memset(nonce_bin, 0, sizeof(nonce_bin));
|
|
|
struct thr_info dummy = {
|
|
struct thr_info dummy = {
|
|
|
|
|
+ .work_restart = false,
|
|
|
.work_restart_fd = -1,
|
|
.work_restart_fd = -1,
|
|
|
};
|
|
};
|
|
|
icarus_gets(nonce_bin, fd, &tv_finish, &dummy, 1);
|
|
icarus_gets(nonce_bin, fd, &tv_finish, &dummy, 1);
|