Static variables here will break with multiple devices. Please put it on struct libbitfury_device.