The "on\n" and "off\n" commands require this.
const char *conn, *serialcomm;
char buf[100];
char *bufptr;
const char *conn, *serialcomm;
char buf[100];
char *bufptr;
devices = NULL;
drvc = di->context;
devices = NULL;
drvc = di->context;
+ 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->status = SR_ST_ACTIVE;
sdi->vendor = g_strdup("Arachnid Labs");
sdi = g_malloc0(sizeof(struct sr_dev_inst));
sdi->status = SR_ST_ACTIVE;
sdi->vendor = g_strdup("Arachnid Labs");