arachnid-labs-re-load-pro: Only support firmware >= 1.10.
The "on\n" and "off\n" commands require this.
This commit is contained in:
parent
8501448cfe
commit
8084e0fa81
|
@ -75,6 +75,7 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options)
|
||||||
const char *conn, *serialcomm;
|
const char *conn, *serialcomm;
|
||||||
char buf[100];
|
char buf[100];
|
||||||
char *bufptr;
|
char *bufptr;
|
||||||
|
double version;
|
||||||
|
|
||||||
devices = NULL;
|
devices = NULL;
|
||||||
drvc = di->context;
|
drvc = di->context;
|
||||||
|
@ -123,6 +124,13 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
version = g_ascii_strtod(buf + 8, NULL);
|
||||||
|
if (version < 1.10) {
|
||||||
|
sr_info("Firmware >= 1.10 required (got %1.2f).", version);
|
||||||
|
serial_close(serial);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
sdi = g_malloc0(sizeof(struct sr_dev_inst));
|
sdi = g_malloc0(sizeof(struct sr_dev_inst));
|
||||||
sdi->status = SR_ST_ACTIVE;
|
sdi->status = SR_ST_ACTIVE;
|
||||||
sdi->vendor = g_strdup("Arachnid Labs");
|
sdi->vendor = g_strdup("Arachnid Labs");
|
||||||
|
|
Loading…
Reference in New Issue