* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "protocol.h"
#include <libserialport.h>
+#include "protocol.h"
extern SR_PRIV struct sr_dev_driver ols_driver_info;
-static struct sr_dev_driver *di = &ols_driver_info;
SR_PRIV int send_shortcommand(struct sr_serial_dev_inst *serial,
uint8_t command)
sdi = g_malloc0(sizeof(struct sr_dev_inst));
sdi->status = SR_ST_INACTIVE;
- sdi->driver = di;
+ sdi->driver = &ols_driver_info;
devc = ols_dev_new();
sdi->priv = devc;
/* what is this for? */
break;
case 0x03:
- /* Maximum sample rate (hz) */
+ /* Maximum sample rate (Hz) */
devc->max_samplerate = tmp_int;
break;
case 0x04: