ziutek / ftdi

Go binding for libFTDI
Other
25 stars 14 forks source link

device: eliminate deprecation warnings in libftdi 1.5 #21

Closed pabigot closed 2 years ago

pabigot commented 2 years ago

Version 1.5 deprecated the purge API two years ago, in a way that produces warnings when building. This was fixed for #10, but reverted for #14. This commit uses the technique of #20 to eliminate the warnings in a way that supports both libftdi 1.4 and 1.5.

Signed-off-by: Peter A. Bigot pab@pabigot.com

rasky commented 2 years ago

Thanks! This is very useful indeed, I often hit this same error.