[PATCH 08/10] Turn serial_ftdi.c into a custom_serial

Anton Lundin glance at acc.umu.se
Thu Aug 20 15:22:39 PDT 2015


On 21 August, 2015 - Anton Lundin wrote:

> This cleans up serial_ftdi.c from being a libdivecomputer source and
> making it into a subsurface custom_serial.
> 

...


>  
>  	device->ftdi_ctx = ftdi_ctx;
> +
> +	//FIXME: remove this when custom-serial have support for configure calls
> +	serial_ftdi_configure (device, 115200, 8, 0, 1, 0);
> +
>  	*out = device;
>  

This is because custom_serial doesn't support the configure call.

The only non bt-computer which supports the custom open call is the
OSTC3, which uses those exact configure lines, so, thats why.


//Anton


-- 
Anton Lundin	+46702-161604


More information about the subsurface mailing list