vnc: avoid using internal details of libfxlink structures

This commit is contained in:
Lephenixnoir 2023-04-01 21:21:34 +02:00
parent 69e6445d93
commit e4766ba89e
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 2 additions and 2 deletions

View File

@ -305,9 +305,9 @@ void monitor_update(struct monitor *mon, int mon_id)
struct fxlink_device *fdev = &app.devices.devices[i];
char const *id = fxlink_device_id(fdev);
if(fdev->status != FXLINK_FDEV_STATUS_IDLE || !fdev->comm)
if(!fxlink_device_ready_to_connect(fdev))
continue;
if(fdev->comm->ep_bulk_IN == 0xff) {
if(!fxlink_device_has_fxlink_interface(fdev)) {
hlog("cgvm");
log_("ignoring %s: no fxlink interface\n", id);
continue;